public class GridPoint3 extends Object
Constructor and Description |
---|
GridPoint3()
Constructs a 3D grid point with all coordinates pointing to the origin (0, 0, 0).
|
GridPoint3(GridPoint3 point)
Copy constructor
|
GridPoint3(int x,
int y,
int z)
Constructs a 3D grid point.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
int |
hashCode() |
GridPoint3 |
set(GridPoint3 point)
Sets the coordinates of this 3D grid point to that of another.
|
GridPoint3 |
set(int x,
int y,
int z)
Sets the coordinates of this GridPoint3D.
|
public GridPoint3()
public GridPoint3(int x, int y, int z)
x
- X coordinatey
- Y coordinatez
- Z coordinatepublic GridPoint3(GridPoint3 point)
point
- The 3D grid point to make a copy of.public GridPoint3 set(GridPoint3 point)
point
- The 3D grid point to copy coordinates of.public GridPoint3 set(int x, int y, int z)
x
- X coordinatey
- Y coordinatez
- Z coordinateCopyright © 2015. All rights reserved.