public final class Point3DInt extends java.lang.Object implements java.lang.Comparable<Point3DInt>
| Modifier and Type | Field and Description |
|---|---|
int |
x
x coordinate.
|
int |
y
y coordinate.
|
int |
z
z coordinate.
|
| Constructor and Description |
|---|
Point3DInt(int x,
int y,
int z)
Constructor for the Point3D object
|
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Point3DInt p) |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
toString()
Returns a string representing Point3D coordinates: (x,y,z).
|
public final int x
public final int y
public final int z
public Point3DInt(int x,
int y,
int z)
x - x coordinate.y - y coordinate.z - z coordinate.public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals in class java.lang.Objectpublic int compareTo(Point3DInt p)
compareTo in interface java.lang.Comparable<Point3DInt>