|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.badlogic.gdx.math.GridPoint3
public class GridPoint3
A point in a 3D grid, with integer x and y coordinates
Field Summary | |
---|---|
int |
x
|
int |
y
|
int |
z
|
Constructor Summary | |
---|---|
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. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public int x
public int y
public int z
Constructor Detail |
---|
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.Method Detail |
---|
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 coordinate
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |