| Modifier and Type | Field and Description |
|---|---|
| private static final long | |
| public int | |
| public int | |
| public int |
| Access | Constructor and Description |
|---|---|
| public | |
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public GridPoint3 | Returns: this 3d grid point for chaining.The other point other)Adds another 3D grid point to this point. |
| public GridPoint3 | Returns: this 3d grid point for chaining.The x-coordinate of the other point x, int The y-coordinate of the other point y, int The z-coordinate of the other point z)Adds another 3D grid point to this point. |
| public GridPoint3 | |
| public float | |
| public float | dst(int
The x-coordinate of the other point x, int The y-coordinate of the other point y, int The z-coordinate of the other point z)Returns: the distance between this point and the other point. |
| public float | dst2(GridPoint3
The other point other)Returns: the squared distance between this point and the other point. |
| public float | dst2(int
The x-coordinate of the other point x, int The y-coordinate of the other point y, int The z-coordinate of the other point z)Returns: the squared distance between this point and the other point. |
| public boolean | equals(Object o)
Overrides java. Indicates whether some other object is "equal to" this one. |
| public int | |
| public GridPoint3 | Returns: this GridPoint3 for chaining.The 3D grid point to copy coordinates of. point)Sets the coordinates of this 3D grid point to that of another. |
| public GridPoint3 | Returns: this GridPoint3D for chaining.X coordinate x, int Y coordinate y, int Z coordinate z)Sets the coordinates of this GridPoint3D. |
| public GridPoint3 | Returns: this 3d grid point for chaining.The other point other)Subtracts another 3D grid point from this point. |
| public GridPoint3 | Returns: this 3d grid point for chaining.The x-coordinate of the other point x, int The y-coordinate of the other point y, int The z-coordinate of the other point z)Subtracts another 3D grid point from this point. |
| public String |
| serialVersionUID | back to summary |
|---|---|
| private static final long serialVersionUID | |
| x | back to summary |
|---|---|
| public int x | |
| y | back to summary |
|---|---|
| public int y | |
| z | back to summary |
|---|---|
| public int z | |
| GridPoint3 | back to summary |
|---|---|
| public GridPoint3() Constructs a 3D grid point with all coordinates pointing to the origin (0, 0, 0). | |
| GridPoint3 | back to summary |
|---|---|
| public GridPoint3(int x, int y, int z) Constructs a 3D grid point.
| |
| GridPoint3 | back to summary |
|---|---|
| public GridPoint3(GridPoint3 point) Copy constructor
| |
| add | back to summary |
|---|---|
| public GridPoint3 add(GridPoint3 other) Adds another 3D grid point to this point.
| |
| add | back to summary |
|---|---|
| public GridPoint3 add(int x, int y, int z) Adds another 3D grid point to this point.
| |
| cpy | back to summary |
|---|---|
public GridPoint3 cpy()
| |
| dst | back to summary |
|---|---|
public float dst(GridPoint3 other)
| |
| dst | back to summary |
|---|---|
public float dst(int x, int y, int z)
| |
| dst2 | back to summary |
|---|---|
public float dst2(GridPoint3 other)
| |
| dst2 | back to summary |
|---|---|
public float dst2(int x, int y, int z)
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes.
| |
| hashCode | back to summary |
|---|---|
| public int hashCode() Overrides java. Doc from java. Returns a hash code value for this object. This method is
supported for the benefit of hash tables such as those provided by
The general contract of
| |
| set | back to summary |
|---|---|
| public GridPoint3 set(GridPoint3 point) Sets the coordinates of this 3D grid point to that of another.
| |
| set | back to summary |
|---|---|
| public GridPoint3 set(int x, int y, int z) Sets the coordinates of this GridPoint3D.
| |
| sub | back to summary |
|---|---|
| public GridPoint3 sub(GridPoint3 other) Subtracts another 3D grid point from this point.
| |
| sub | back to summary |
|---|---|
| public GridPoint3 sub(int x, int y, int z) Subtracts another 3D grid point from this point.
| |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non-
| |