/** * Position Class * - Just keeping x, y details for hash maps * @author Akbar Sherwani * @date 27th November * @version 0.1 */ public class Position { public double posx; // Position public double posy; // Constructor /** * Constructor method sets the positions */ public Position() { //Initialise posx = 0.0; posy = 0.0; } /** * Constructor method sets the positions * @param posx position x cord * @param posy position y cord */ public Position(double posx, double posy) { //Initialise this.posx = posx; this.posy = posy; } /** * Set method sets the positions * @param posx position x cord * @param posy position y cord */ public void Set(double posx, double posy) { this.posx = posx; this.posy = posy; } /** * get method * @return positionx data */ public double getPosx() { return posx; } /** * get method * @return positiony data */ public double getPosy() { return posy; } }