? XYZ

java.lang.Object
mccombe.mapping.XYZ

public class XYZ extends Object
A simple immutable class for 3D cartesian coordinates
  • ?????

    ???
    ???
    ??
    XYZ()
    Creates a new instance of XYZ
    XYZ(double x, double y, double z)
    Create a new XYZ coordinate
  • ????

    ??????
    ??
    ??
    boolean
    Compare this XYZ with another Object
    int
    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
  • ???????

    • 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 component
      y - The Y component
      z - 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.
      ??:
      hashCode ??? Object
      ??:
      hashcode
    • equals

      public boolean equals(Object obj)
      Compare this XYZ with another Object
      ??:
      equals ??? Object
      ??:
      obj - - the Objecty to compare to.
      ??:
      true if obj is another XYZ containing the same values. They are not necessarily the same object.