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
-
public Position(double x,
double y)
-
Method Details
-
public double getX()
getX()
- Returns:
- - x-coordinate.
-
public double getY()
getY()
- Returns:
- - y-coordinate.
-
public boolean equals(java.lang.Object o)
- Overrides:
equals
in class java.lang.Object
-
public int hashCode()
- Overrides:
hashCode
in class java.lang.Object