Package model

Class Position

java.lang.Object
model.Position

public class Position
extends java.lang.Object
Position is a class that represents the X and Y coordinates in map.
  • Constructor Summary

    Constructors 
    Constructor Description
    Position​(double x, double y)  
  • Method Summary

    Modifier and Type Method Description
    boolean equals​(java.lang.Object o)  
    double getX()
    getX()
    double getY()
    getY()
    int hashCode()  

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • Position

      public Position​(double x, double y)
  • Method Details

    • getX

      public double getX()
      getX()
      Returns:
      - x-coordinate.
    • getY

      public double getY()
      getY()
      Returns:
      - y-coordinate.
    • equals

      public boolean equals​(java.lang.Object o)
      Overrides:
      equals in class java.lang.Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class java.lang.Object