Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public void rotate() {
- // if (this.checkMove(1,1)){
- //// double centerOfRotationX = _square1.getX();
- //// double centerOfRotationY = _square1.getY();
- //// _square1.setLocation(centerOfRotationX - centerOfRotationY + _square1.getY(), centerOfRotationX + centerOfRotationY - _square1.getX());
- //// _square2.setLocation(centerOfRotationX - centerOfRotationY + _square2.getY(), centerOfRotationX + centerOfRotationY - _square2.getX());
- //// _square3.setLocation(centerOfRotationX - centerOfRotationY + _square3.getY(), centerOfRotationX + centerOfRotationY - _square3.getX());
- //// _square4.setLocation(centerOfRotationX - centerOfRotationY + _square4.getY(), centerOfRotationX + centerOfRotationY - _square4.getX());
- // }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement