function to rotate a vector

Blitz3D Forums/Blitz3D Programming/function to rotate a vector

Anyone got a function to rotate a vector?

Here's the function I used and it's returning totally screwy results.

x = (x * Cos(angle)) - (y * Sin(angle))
y = (y * Cos(angle)) + (x * Sin(angle))