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
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
flashdaddee.com rocks!!!
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
Naturally I didn't feel inspired enough to read all the links for you, since I already slaved away for long hours under a blistering sun pressing the search button after typing four whole words! - Quzah
You. Fetch me my copy of the Wall Street Journal. You two, fight to the death - Stewie
>>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.
When all else fails, read the instructions.
If you're posting code, use code tags: [code] /* insert code here */ [/code]