Package org.web3d.util.spatial
Class VoxelCoordinate
java.lang.Object
org.web3d.util.spatial.VoxelCoordinate
Voxel coordinate holder. Used to reference a voxels position.
Typically stored in a Java collection object.
This structure will be optimized for memory savings in the future.
- Author:
- Alan Hudson
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
-
Field Details
-
x
protected int x -
y
protected int y -
z
protected int z
-
-
Constructor Details
-
VoxelCoordinate
public VoxelCoordinate(int x, int y, int z)
-
-
Method Details
-
equals
-
equals
Compares this object with the specified object to check for equivalence.- Parameters:
ta
- The geometry instance to be compared- Returns:
- true if the objects represent identical values
-
hashCode
-
setValue
public void setValue(int x, int y, int z) -
getX
public int getX() -
getY
public int getY() -
getZ
public int getZ()
-