Java Graphics Rotate rotateMoveClockwise(Point move, int size)

Here you can find the source of rotateMoveClockwise(Point move, int size)

Description

rotate Move Clockwise

License

GNU General Public License

Declaration

@SuppressWarnings("SuspiciousNameCombination")
    public static Point rotateMoveClockwise(Point move, int size) 

Method Source Code

//package com.java2s;
/**/*w w  w .  j  a va2s .c o  m*/
 * Loki AI
 *
 * Utils.java
 * Created on 2015-12-30
 * Version 0.7.0 Beta
 *
 * Written by Jimmy Nordstr?m.
 * ? 2015-2016 Jimmy Nordstr?m.
 *
 * Licenced under GNU GPLv3.
 * http://www.gnu.org/licenses/gpl-3.0.html
 *
 * If you have questions, contact me at pzyber@pzyber.net
 */

import java.awt.Point;

public class Main {
    @SuppressWarnings("SuspiciousNameCombination")
    public static Point rotateMoveClockwise(Point move, int size) {
        return new Point(size - 1 - move.y, move.x);
    }
}

Related

  1. rotateClockwise(Path source, Path target)
  2. rotateCoor(float x, float y, float theta)
  3. rotateCoorAroundPoint(float x, float y, float xctr, float yctr, float theta)
  4. rotateHue(Color color, float fraction)
  5. rotateHue(Color color, float fraction)
  6. rotatePoint(double x0, double y0, double x, double y, double a)
  7. rotatePoint(double x0, double y0, double x, double y, double angle)
  8. rotatePoint(int x, int y, int xC, int yC, float angle)
  9. rotatePoint(Point center, Point p, double angle)