Package georegression.struct
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
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
-
Method Summary
Modifier and TypeMethodDescriptioncopy()
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
Sets this equal to 'src'abstract void
zero()
Sets all coefficients and parameters to zero, which is typically the initial state.
-
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
Creates a new tuple instance of the same type.
- Returns:
- new tuple instance.
-
setTo
Sets this equal to 'src'- Parameters:
src
- The tuple being copied- Returns:
- Reference to 'this' class instance. Used to chain operations.
-
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.
-