georegression.struct
Class GeoTuple4D_F32<T extends GeoTuple4D_F32>
- java.lang.Object
-
- georegression.struct.GeoTuple<T>
-
- georegression.struct.GeoTuple_F32<T>
-
- georegression.struct.GeoTuple4D_F32<T>
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- Point4D_F32, Vector4D_F32
public abstract class GeoTuple4D_F32<T extends GeoTuple4D_F32> extends GeoTuple_F32<T>
Generic Tuple for geometric objects that store (x,y,z,w)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description GeoTuple4D_F32()GeoTuple4D_F32(float x, float y, float z, float w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatdistance(GeoTuple4D_F32 t)floatdistance2(GeoTuple4D_F32 t)intgetDimension()The dimensionality of space the tuple is contained in and the number of values it has.floatgetIndex(int index)Returns the value of the tuple along the specified coordinate system axis.floatgetW()floatgetX()floatgetY()floatgetZ()booleanisIdentical(float x, float y, float z, float w)booleanisIdentical(float x, float y, float z, float w, float tol)booleanisIdentical(GeoTuple4D_F32 t, float tol)Checks to see if the two GeoTuple have values which are nearly the same.booleanisNaN()floatnorm()Computes the Euclidean norm.floatnormSq()Computes the square of the Euclidean norm.voidprint()voidset(float x, float y, float z, float w)voidsetIndex(int index, float value)voidsetW(float w)voidsetX(float x)voidsetY(float y)voidsetZ(float z)-
Methods inherited from class georegression.struct.GeoTuple_F32
copy
-
Methods inherited from class georegression.struct.GeoTuple
createNewInstance
-
-
-
-
Constructor Detail
-
GeoTuple4D_F32
public GeoTuple4D_F32(float x, float y, float z, float w)
-
GeoTuple4D_F32
public GeoTuple4D_F32()
-
-
Method Detail
-
getDimension
public int getDimension()
Description copied from class:GeoTupleThe dimensionality of space the tuple is contained in and the number of values it has.- Specified by:
getDimensionin classGeoTuple<T extends GeoTuple4D_F32>- Returns:
- Dimensionality of the object.
-
set
public void set(float x, float y, float z, float w)
-
isIdentical
public boolean isIdentical(float x, float y, float z, float w)
-
isIdentical
public boolean isIdentical(float x, float y, float z, float w, float tol)
-
isIdentical
public boolean isIdentical(GeoTuple4D_F32 t, float tol)
Description copied from class:GeoTuple_F32Checks to see if the two GeoTuple have values which are nearly the same. False is always returned if the dimension is different.- Overrides:
isIdenticalin classGeoTuple_F32<T extends GeoTuple4D_F32>- 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.
-
getX
public float getX()
-
getY
public float getY()
-
getZ
public float getZ()
-
getW
public float getW()
-
getIndex
public float getIndex(int index)
Description copied from class:GeoTuple_F32Returns the value of the tuple along the specified coordinate system axis.- Specified by:
getIndexin classGeoTuple_F32<T extends GeoTuple4D_F32>- Parameters:
index- Which axis in the coordinate system.- Returns:
- Its value.
-
setIndex
public void setIndex(int index, float value)- Specified by:
setIndexin classGeoTuple_F32<T extends GeoTuple4D_F32>
-
norm
public float norm()
Description copied from class:GeoTuple_F32Computes the Euclidean norm.- Overrides:
normin classGeoTuple_F32<T extends GeoTuple4D_F32>- Returns:
- norm.
-
normSq
public float normSq()
Description copied from class:GeoTuple_F32Computes the square of the Euclidean norm.- Overrides:
normSqin classGeoTuple_F32<T extends GeoTuple4D_F32>- Returns:
- norm squared.
-
distance
public float distance(GeoTuple4D_F32 t)
- Overrides:
distancein classGeoTuple_F32<T extends GeoTuple4D_F32>
-
distance2
public float distance2(GeoTuple4D_F32 t)
- Overrides:
distance2in classGeoTuple_F32<T extends GeoTuple4D_F32>
-
print
public void print()
-
isNaN
public boolean isNaN()
-
setX
public void setX(float x)
-
setY
public void setY(float y)
-
setZ
public void setZ(float z)
-
setW
public void setW(float w)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG