Class GeoTuple<T extends GeoTuple>

java.lang.Object
georegression.struct.GeoTuple<T>
All Implemented Interfaces:
Serializable
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.
      Returns:
      Dimensionality of the object.
    • createNewInstance

      public abstract T createNewInstance()

      Creates a new tuple instance of the same type.

      Returns:
      new tuple instance.
    • setTo

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

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