Classes and const member functionsThank you, that solved the problem. My rotated function in Point class was indeed not set to const.
Classes and const member functionsI have two classes called Point and Triangle. [code] class Point { public: double x; ...
Confused about const and & in member funnctionsI am learning about creating a class and its member functions but am having a hard time understandin...
Rotating a point in 2D shows inaccurate resultChanging it to (angle*M_PI/180) worked and gave (-1, 1.22465e-16). Thank you all! :D
Rotating a point in 2D shows inaccurate resultI'm trying to create a member function called 'rotated' in class 'Point'. However when I try to rota...
This user does not accept Private Messages