¡@

Home 

c++ Programming Glossary: xnew

Rotating a point about another point (2D)

http://stackoverflow.com/questions/2259476/rotating-a-point-about-another-point-2d

point back to origin p.x cx p.y cy rotate point float xnew p.x c p.y s float ynew p.x s p.y c translate point back p.x.. c p.y s float ynew p.x s p.y c translate point back p.x xnew cx p.y ynew cy If the rotation is exactly the wrong side around.. I've messed up the rotation. In this case it is float xnew p.x c p.y s float ynew p.x s p.y c I hope one day I'll remember..

Proper Trigonometry For Rotating A Point Around The Origin

http://stackoverflow.com/questions/3162643/proper-trigonometry-for-rotating-a-point-around-the-origin

to origin p.x cx p.y cy Which One Is Correct This float xnew p.x c p.y s float ynew p.x s p.y c Or This float xnew p.x c.. xnew p.x c p.y s float ynew p.x s p.y c Or This float xnew p.x c p.y s float ynew p.x s p.y c translate point back p.x.. c p.y s float ynew p.x s p.y c translate point back p.x xnew cx p.y ynew cy c# c geometry trigonometry share improve this..