Does anyone out there know how to rotate a 3D point about an arbitrary axiz. I know how to rotate about the x,y, and z-axis, but would like to write a function that mirrors the glRotatef() function.
Thanks a lot,
James
-James@dempsey.net

LordKronos

04-10-2001, 11:39 AM

This is from my matrix class. You should be able to get what you want from it. If you want a description of how/why it works, well....thats a bit more difficult, so I will skip that unless you REALLY want to know