How would I rotate a point around another point (x, y, z) by a certain angle and around a certain axis?
cross posting is fun
Printable View
How would I rotate a point around another point (x, y, z) by a certain angle and around a certain axis?
cross posting is fun
You could use trig to represent the point in spherical cooridinates, (i.e. your point is represented as two angles & a radius). Move one or both angles, then convert back to cartesian.
However, I suspect there are much more effecient ways to do this using matrices (which I'm not familar with).
http://www.exhedra.com/DirectX4VB/Tu...M_Matrices.htm
yes, i know its for VB, but it works the same in any language
>>cross posting is fun
No, it's a pain in the backside and against the rules. Don't do it. Cross posted threads will (and have been) deleted.