Negative angles will return negative number of rotations thus never looping the rotation.

Dieser Commit ist enthalten in:
ZachBora 2011-10-02 22:26:44 -03:00
Ursprung 24056df78a
Commit bb609a47c2

Datei anzeigen

@ -126,7 +126,7 @@ public class CuboidClipboard {
return; return;
} }
boolean reverse = angle < 0; boolean reverse = angle < 0;
int numRotations = (int)Math.floor(angle / 90.0); int numRotations = Math.abs((int)Math.floor(angle / 90.0));
int width = getWidth(); int width = getWidth();
int length = getLength(); int length = getLength();