rotateing
- Posted by Hayden McKay <hmck1 at dodo.com.au> Mar 02, 2005
- 513 views
I'm looking for formulars to rotate 2d and 3d points arround an objects centre (x,y) (x,y,z) respectively. I've tried: deg/=100 new_x=(cos(deg)*x)-(sin(deg)*y) new_y=(sin(deg)*x)+(cos(deg)*y) seems to rotate O.K. but it's not what I'm looking for. ie: the origen here is assumed to be at 0:0. could some please point me in the right direction.