function to rotate a vector

Blitz3D Forums/Blitz3D Programming/function to rotate a vector

r = sqrt(x*x+y*y)
newangle = acos(x/r)+angle
x = r*cos(newangle)
y = r*sin(newangle)

No idea if this works, just something I came up with