Advertisement

Rotating points

Started by October 09, 2002 09:17 PM
1 comment, last by Mulligan 22 years, 4 months ago
I need to write a function that will rotate a point about the origin a given number of degrees. Something to the effect of What would the body of these functions be? VECTOR3 RotateX( VECTOR3 vPoint, float degrees ) VECTOR3 RotateY( VECTOR3 vPoint, float degrees ) VECTOR3 RotateZ( VECTOR3 vPoint, float degrees )
Here is a link for a webpage that has all the info you need to rotate a point around a axis in space, note::I got this link from GameTutorials "Camera2 tutorial". Well here is the link: http://astronomy.swin.edu.au/~pbourke/geometry/rotate/ well anyways, he tells you how to rotate a point around any any axis, not just the orgin so check it out.
Advertisement
Perfect, thank you.

This topic is closed to new replies.

Advertisement