Find Right Angle to a Vector

BlitzMax Forums/BlitzMax Programming/Find Right Angle to a Vector

The forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.

skidracer: Thanks but regretably I've forgotton how to matrix transformations in the last ooh 15 years or so (since I last programmed 3D lol). So what am I supposed to do with the [dy,-dx] result? Is my original vector a matrix like this [dx,dy]? and am I supposed add the matrices or multiply them?

Hmm, let's work this out. Say dx = 0 and dy = 1 (it should point down/South on the screen (or up on a graph)), 90 degrees clockwise would be pointing left/West. So dx will end up being -1 and dy will end up being 0. Hmm, I don't get how that links to the [dy,-dx] matrix. Help please experts!