OK the math is fine, but I still have same sort of problem as with graphics2D rotate. I'm using this to get the cords of my mouse
1
| rotateAngle=(int)java.lang.Math.round((java.lang.Math.atan((276-mouseY)/(376-mouseX)))*180/java.lang.Math.PI); |
The problem doesn't seem to be with the rotation functions, because when I tried andle = x++ in thread rotations everything worked out fine. When I use the code from above it seems to be it can't draw certain areas.
I'm going to bed, perhaps tomorrow, will be better for this.