Here you can find the source of mirrorMoveVertically(Point move, int size)
public static Point mirrorMoveVertically(Point move, int size)
//package com.java2s; /**/* ww w. j a v a 2 s . 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 { public static Point mirrorMoveVertically(Point move, int size) { return new Point((size - 1) - move.x, move.y); } }