Here you can find the source of rotateMoveClockwise(Point move, int size)
@SuppressWarnings("SuspiciousNameCombination") public static Point rotateMoveClockwise(Point move, int size)
//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); } }