Package georegression.struct
Class GeoTuple_F64<T extends GeoTuple_F64>
java.lang.Object
georegression.struct.GeoTuple<T>
georegression.struct.GeoTuple_F64<T>
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
GeoTuple2D_F64
,GeoTuple3D_F64
,GeoTuple4D_F64
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.double
double
boolean
abstract double
getIdx
(int index) Returns the value of the tuple along the specified coordinate system axis.int
hashCode()
boolean
isIdentical
(T t, double tol) Checks to see if the two GeoTuple have values which are nearly the same.boolean
Returns true if at least one value is INFINITEboolean
isNaN()
Returns true if at least one value is NaNdouble
norm()
Computes the Euclidean norm.double
normSq()
Computes the square of the Euclidean norm.abstract void
setIdx
(int index, double value) Methods inherited from class georegression.struct.GeoTuple
createNewInstance, getDimension, setTo, zero
-
Constructor Details
-
GeoTuple_F64
public GeoTuple_F64()
-
-
Method Details
-
isIdentical
Checks to see if the two GeoTuple have values which are nearly the same. False is always returned if the dimension is different.- Parameters:
t
- The GeoTuple it is being compared against.tol
- How similar each element must be for them to be considered identical.- Returns:
- if they are identical or not.
-
isNaN
public boolean isNaN()Returns true if at least one value is NaN -
isInfinite
public boolean isInfinite()Returns true if at least one value is INFINITE -
copy
Generic copy routine. It is recommended that this be overridden with a faster implementation.- Overrides:
copy
in classGeoTuple<T extends GeoTuple_F64>
- Returns:
- An exact copy of this GeoTuple.
-
norm
public double norm()Computes the Euclidean norm.- Returns:
- norm.
-
normSq
public double normSq()Computes the square of the Euclidean norm.- Returns:
- norm squared.
-
distance
-
distance2
-
getIdx
public abstract double getIdx(int index) Returns the value of the tuple along the specified coordinate system axis.- Parameters:
index
- Which axis in the coordinate system.- Returns:
- Its value.
-
setIdx
public abstract void setIdx(int index, double value) -
equals
-
hashCode
public int hashCode()
-