Class GeoTuple<T extends GeoTuple>

All Implemented Interfaces:
Direct Known Subclasses:
GeoTuple_F32, GeoTuple_F64, GeoTuple_I32

public abstract class GeoTuple<T extends GeoTuple>
extends Object
implements Serializable
Describes geometric objects that are composed of N double values. Where N is the dimension of space the object is contained in. Points and vectors are two examples of a GeoTuple. Each value is the value of the object along a dimension in the space it occupies.
See Also:
Serialized Form
  • Constructor Details

    • GeoTuple

      public GeoTuple()
  • Method Details

    • getDimension

      public abstract int getDimension()
      The dimensionality of space the tuple is contained in and the number of values it has.
      Dimensionality of the object.
    • createNewInstance

      public abstract T createNewInstance()

      Creates a new tuple instance of the same type.

      new tuple instance.
    • setTo

      public abstract void setTo​(T src)
      Sets this equal to 'src'
      src - The tuple being copied
    • copy

      public T copy()
      Generic copy routine. It is recommended that this be overridden with a faster implementation.
      An exact copy of this GeoTuple.