|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmccombe.mapping.XYZ
public class XYZ
A simple immutable class for 3D cartesian coordinates
Constructor Summary | |
---|---|
XYZ()
Creates a new instance of XYZ |
|
XYZ(double x,
double y,
double z)
Create a new XYZ coordinate |
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Compare this XYZ with another Object |
int |
hashCode()
Provide a hashcode for this XYZ based on the values contained. |
double |
x()
Get the X component |
double |
y()
Get the Y component |
double |
z()
Get the Z component |
Methods inherited from class java.lang.Object |
---|
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public XYZ()
public XYZ(double x, double y, double z)
x
- The X componenty
- The Y componentz
- Th Z componentMethod Detail |
---|
public double x()
public double y()
public double z()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
obj
- - the Objecty to compare to.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |