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:
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    Generic copy routine.
    abstract T
    Creates a new tuple instance of the same type.
    abstract int
    The dimensionality of space the tuple is contained in and the number of values it has.
    abstract T
    setTo(T src)
    Sets this equal to 'src'
    abstract void
    Sets all coefficients and parameters to zero, which is typically the initial state.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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 T setTo(T src)
      Sets this equal to 'src'
      Parameters:
      src - The tuple being copied
      Returns:
      Reference to 'this' class instance. Used to chain operations.
    • 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.
    • zero

      public abstract void zero()
      Sets all coefficients and parameters to zero, which is typically the initial state.