com.threerings.opengl.scene
Class HashScene.Coord

java.lang.Object
  extended by com.threerings.opengl.scene.HashScene.Coord
All Implemented Interfaces:
Cloneable
Enclosing class:
HashScene

protected static class HashScene.Coord
extends Object
implements Cloneable

The coordinates of a hash cell.


Field Summary
 int x
          The coordinates of the cell.
 int y
          The coordinates of the cell.
 int z
          The coordinates of the cell.
 
Constructor Summary
HashScene.Coord()
          Creates a zero coordinate.
HashScene.Coord(int x, int y, int z)
          Creates a coordinate with the specified values.
 
Method Summary
 HashScene.Coord clone()
           
 boolean equals(Object other)
           
 int hashCode()
           
 HashScene.Coord set(int x, int y, int z)
          Sets the fields of the coord.
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

x

public int x
The coordinates of the cell.


y

public int y
The coordinates of the cell.


z

public int z
The coordinates of the cell.

Constructor Detail

HashScene.Coord

public HashScene.Coord(int x,
                       int y,
                       int z)
Creates a coordinate with the specified values.


HashScene.Coord

public HashScene.Coord()
Creates a zero coordinate.

Method Detail

set

public HashScene.Coord set(int x,
                           int y,
                           int z)
Sets the fields of the coord.

Returns:
a reference to this coord, for chaining.

clone

public HashScene.Coord clone()
Overrides:
clone in class Object

hashCode

public int hashCode()
Overrides:
hashCode in class Object

equals

public boolean equals(Object other)
Overrides:
equals in class Object