rotateing

new topic     » topic index » view thread      » older message » newer message

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.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu