Coder Social home page Coder Social logo

new Mac build errors about rs-met HOT 6 CLOSED

robinschmidt avatar robinschmidt commented on September 26, 2024
new Mac build errors

from rs-met.

Comments (6)

RobinSchmidt avatar RobinSchmidt commented on September 26, 2024

ok, thanks. done. weird. the "this" pointer should be implicit inside member functions.

from rs-met.

RobinSchmidt avatar RobinSchmidt commented on September 26, 2024

..well - i added the this pointer. declare variables? noo - they are inherited from the rsConicSection baseclass

from rs-met.

elanhickler avatar elanhickler commented on September 26, 2024

do you have a mac yet? i can only say what removes errors, not what makes the code work 👍

from rs-met.

RobinSchmidt avatar RobinSchmidt commented on September 26, 2024

the solution was to add this pointers there too:

  this->A = a2*s*s + b2*c*c;
  this->B = 2*(b2-a2)*s*c;
  this->C = a2*c*c + b2*s*s;
  this->D = -2*this->A*xc - this->B*yc;
  this->E = -2*this->C*yc - this->B*xc;
  this->F = this->A*xc*xc + this->B*xc*yc + this->C*yc*yc - a2*b2;

i found some explanation here:
https://stackoverflow.com/questions/4643074/why-do-i-have-to-access-template-base-class-members-through-the-this-pointer
..which basically says: something c++ reasons something something (i'm not really interested in decrypting that). what a great uglification of my code :-(

from rs-met.

RobinSchmidt avatar RobinSchmidt commented on September 26, 2024

you may see now, why i'm so insistent to review changes to my library. declaring those variables in rsEllipse again would have broken my code

from rs-met.

elanhickler avatar elanhickler commented on September 26, 2024

good, now please get preset system to work on Mac. Even on windows its very annoying because the plugin doesn't remember last location.

(presets cannot be located next to the dll on mac)

from rs-met.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.