Class Point3D_I32

All Implemented Interfaces:
Serializable

public class Point3D_I32 extends GeoTuple_I32<Point3D_I32>
Point in 3D with integer values.
See Also:
  • Field Details

    • x

      public int x
    • y

      public int y
    • z

      public int z
  • Constructor Details

    • Point3D_I32

      public Point3D_I32(Point3D_I32 pt)
    • Point3D_I32

      public Point3D_I32(int x, int y, int z)
    • Point3D_I32

      public Point3D_I32()
  • Method Details

    • copy

      public Point3D_I32 copy()
      Description copied from class: GeoTuple
      Generic copy routine. It is recommended that this be overridden with a faster implementation.
      Overrides:
      copy in class GeoTuple<Point3D_I32>
      Returns:
      An exact copy of this GeoTuple.
    • getIdx

      public int getIdx(int index)
      Description copied from class: GeoTuple_I32
      Returns the value of the tuple along the specified coordinate system axis.
      Specified by:
      getIdx in class GeoTuple_I32<Point3D_I32>
      Parameters:
      index - Which axis in the coordinate system.
      Returns:
      Its value.
    • setIdx

      public void setIdx(int index, int value)
      Specified by:
      setIdx in class GeoTuple_I32<Point3D_I32>
    • setTo

      public void setTo(int x, int y, int z)
    • setTo

      public Point3D_I32 setTo(Point3D_I32 p)
      Description copied from class: GeoTuple
      Sets this equal to 'src'
      Specified by:
      setTo in class GeoTuple<Point3D_I32>
      Parameters:
      p - The tuple being copied
      Returns:
      Reference to 'this' class instance. Used to chain operations.
    • zero

      public void zero()
      Description copied from class: GeoTuple
      Sets all coefficients and parameters to zero, which is typically the initial state.
      Specified by:
      zero in class GeoTuple<Point3D_I32>
    • isIdentical

      public boolean isIdentical(Point3D_I32 p)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • getDimension

      public int getDimension()
      Description copied from class: GeoTuple
      The dimensionality of space the tuple is contained in and the number of values it has.
      Specified by:
      getDimension in class GeoTuple<Point3D_I32>
      Returns:
      Dimensionality of the object.
    • createNewInstance

      public Point3D_I32 createNewInstance()
      Description copied from class: GeoTuple

      Creates a new tuple instance of the same type.

      Specified by:
      createNewInstance in class GeoTuple<Point3D_I32>
      Returns:
      new tuple instance.
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object