public final class Offset3D extends java.lang.Object implements java.io.Serializable
(dx, dy, dz) in three dimensional space. Instances
of this class are immutable.
| Modifier and Type | Field and Description |
|---|---|
static Offset3D |
ZERO_OFFSET
Zero offset.
|
| Constructor and Description |
|---|
Offset3D()
Default constructor (
(0, 0)). |
Offset3D(double dx,
double dy,
double dz)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(java.lang.Object obj)
Tests this instance for equality with an arbitrary object.
|
double |
getDX()
Returns the x-offset.
|
double |
getDY()
Returns the y-offset.
|
double |
getDZ()
Returns the z-offset.
|
int |
hashCode() |
java.lang.String |
toString() |
public static final Offset3D ZERO_OFFSET
public Offset3D()
(0, 0)).public Offset3D(double dx, double dy, double dz)
dx - the x-offset.dy - the y-offset.dz - the z-offset.public double getDX()
public double getDY()
public double getDZ()
public boolean equals(java.lang.Object obj)
equals in class java.lang.Objectobj - the object (null permitted).public int hashCode()
hashCode in class java.lang.Objectpublic java.lang.String toString()
toString in class java.lang.Object