public class Point3DInt
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
int |
x
The x coordinate.
|
int |
y
The y coordinate.
|
int |
z
The z coordinate.
|
Constructor and Description |
---|
Point3DInt(int x,
int y,
int z)
Construct a Point3DInt with the specified coordinates.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o)
Comparison operator for hashing.
|
int |
hashCode()
hashcode for hashing.
|
private static int |
rotateLeft(int i,
int distance)
Integer.rotateLeft doesn't exist until Java 1.5, so we have to
implement it.
|
java.lang.String |
toString()
Returns a String representation of this point.
|
public int x
public int y
public int z
public Point3DInt(int x, int y, int z)
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
private static int rotateLeft(int i, int distance)