edu.gwu.geometry.IntPoint
A class to be used to hold integer (x,y) points.
-
Field Details
-
ID
public int ID
Every instance will have a different ID, for use in hashing (not needed for the Bus problem).
-
x
public int x
The x coordinate.
-
y
public int y
The y coordinate.
-
Constructor Details
-
IntPoint
public IntPoint(int x,
int y)
Constructor.
- Parameters:
x
- an int
value
y
- an int
value
-
Method Details
-
equals
public boolean equals(Object obj)
Overrides Object's equals
method to test point equality.
-
-
toString
public String toString()
Overrides Object's toString()
.