Hey thanks Dan that works!
To clarify the other part, if I have an array of points that create a shape :
[0,0],[200,0],[200,100],[0,100]
Is the only way of rotating the shape by using a for loop and applying the function to each point? Or is there a more efficient way to rotate an array of points?
Cheers!