Fixed bug in Rotate function

Earlier it looked like this
x = x * ca - y * sa;
y = x * sa + y * ca;

And the already calculated X value was used to calculate Y value, so that corrupts the result :)
Merge pull request #108 from osro/patch-3