public class GridPoint2
extends java.lang.Object
Constructor and Description |
---|
GridPoint2()
Constructs a new 2D grid point.
|
GridPoint2(GridPoint2 point)
Copy constructor
|
GridPoint2(int x,
int y)
Constructs a new 2D grid point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
GridPoint2 |
set(GridPoint2 point)
Sets the coordinates of this 2D grid point to that of another.
|
GridPoint2 |
set(int x,
int y)
Sets the coordinates of this 2D grid point.
|
public GridPoint2()
public GridPoint2(int x, int y)
x
- X coordinatey
- Y coordinatepublic GridPoint2(GridPoint2 point)
point
- The 2D grid point to make a copy of.public GridPoint2 set(GridPoint2 point)
point
- The 2D grid point to copy the coordinates of.public GridPoint2 set(int x, int y)
x
- X coordinatey
- Y coordinatepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object