??? mccombe.mapping
? XYZ
java.lang.Object
mccombe.mapping.XYZ
A simple immutable class for 3D cartesian coordinates
-
?????
??? -
????
-
???????
-
XYZ
public XYZ()Creates a new instance of XYZ -
XYZ
public XYZ(double x, double y, double z) Create a new XYZ coordinate- ??:
x
- The X componenty
- The Y componentz
- Th Z component
-
-
??????
-
x
public double x()Get the X component- ??:
- The X component
-
y
public double y()Get the Y component- ??:
- The Y component
-
z
public double z()Get the Z component- ??:
- The Z component
-
hashCode
public int hashCode()Provide a hashcode for this XYZ based on the values contained. This is necessary to meet the contract for the Object.hashcode() method which requires that if object1.equals(object2) their hashcodes must also be equal. -
equals
Compare this XYZ with another Object
-