com.badlogic.gdx.math
Class GridPoint3

java.lang.Object
  extended by com.badlogic.gdx.math.GridPoint3

public class GridPoint3
extends Object

A point in a 3D grid, with integer x and y coordinates

Author:
badlogic

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

x

public int x

y

public int y

z

public int z
Constructor Detail

GridPoint3

public GridPoint3()
Constructs a 3D grid point with all coordinates pointing to the origin (0, 0, 0).


GridPoint3

public GridPoint3(int x,
                  int y,
                  int z)
Constructs a 3D grid point.

Parameters:
x - X coordinate
y - Y coordinate
z - Z coordinate

GridPoint3

public GridPoint3(GridPoint3 point)
Copy constructor

Parameters:
point - The 3D grid point to make a copy of.
Method Detail

set

public GridPoint3 set(GridPoint3 point)
Sets the coordinates of this 3D grid point to that of another.

Parameters:
point - The 3D grid point to copy coordinates of.
Returns:
this GridPoint3 for chaining.

set

public GridPoint3 set(int x,
                      int y,
                      int z)
Sets the coordinates of this GridPoint3D.

Parameters:
x - X coordinate
y - Y coordinate
z - Z coordinate
Returns:
this GridPoint3D for chaining.


Copyright © 2014. All Rights Reserved.