georegression.struct
Class GeoTuple4D_F64<T extends GeoTuple4D_F64>
- java.lang.Object
-
- georegression.struct.GeoTuple<T>
-
- georegression.struct.GeoTuple_F64<T>
-
- georegression.struct.GeoTuple4D_F64<T>
-
- All Implemented Interfaces:
- java.io.Serializable
- Direct Known Subclasses:
- Point4D_F64, Vector4D_F64
public abstract class GeoTuple4D_F64<T extends GeoTuple4D_F64> extends GeoTuple_F64<T>
Generic Tuple for geometric objects that store (x,y,z,w)- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description GeoTuple4D_F64()GeoTuple4D_F64(double x, double y, double z, double w)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description doubledistance(GeoTuple4D_F64 t)doubledistance2(GeoTuple4D_F64 t)intgetDimension()The dimensionality of space the tuple is contained in and the number of values it has.doublegetIndex(int index)Returns the value of the tuple along the specified coordinate system axis.doublegetW()doublegetX()doublegetY()doublegetZ()booleanisIdentical(double x, double y, double z, double w)booleanisIdentical(double x, double y, double z, double w, double tol)booleanisIdentical(GeoTuple4D_F64 t, double tol)Checks to see if the two GeoTuple have values which are nearly the same.booleanisNaN()doublenorm()Computes the Euclidean norm.doublenormSq()Computes the square of the Euclidean norm.voidprint()voidset(double x, double y, double z, double w)voidsetIndex(int index, double value)voidsetW(double w)voidsetX(double x)voidsetY(double y)voidsetZ(double z)-
Methods inherited from class georegression.struct.GeoTuple_F64
copy
-
Methods inherited from class georegression.struct.GeoTuple
createNewInstance
-
-
-
-
Constructor Detail
-
GeoTuple4D_F64
public GeoTuple4D_F64(double x, double y, double z, double w)
-
GeoTuple4D_F64
public GeoTuple4D_F64()
-
-
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_F64>- Returns:
- Dimensionality of the object.
-
set
public void set(double x, double y, double z, double w)
-
isIdentical
public boolean isIdentical(double x, double y, double z, double w)
-
isIdentical
public boolean isIdentical(double x, double y, double z, double w, double tol)
-
isIdentical
public boolean isIdentical(GeoTuple4D_F64 t, double tol)
Description copied from class:GeoTuple_F64Checks 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_F64<T extends GeoTuple4D_F64>- 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 double getX()
-
getY
public double getY()
-
getZ
public double getZ()
-
getW
public double getW()
-
getIndex
public double getIndex(int index)
Description copied from class:GeoTuple_F64Returns the value of the tuple along the specified coordinate system axis.- Specified by:
getIndexin classGeoTuple_F64<T extends GeoTuple4D_F64>- Parameters:
index- Which axis in the coordinate system.- Returns:
- Its value.
-
setIndex
public void setIndex(int index, double value)- Specified by:
setIndexin classGeoTuple_F64<T extends GeoTuple4D_F64>
-
norm
public double norm()
Description copied from class:GeoTuple_F64Computes the Euclidean norm.- Overrides:
normin classGeoTuple_F64<T extends GeoTuple4D_F64>- Returns:
- norm.
-
normSq
public double normSq()
Description copied from class:GeoTuple_F64Computes the square of the Euclidean norm.- Overrides:
normSqin classGeoTuple_F64<T extends GeoTuple4D_F64>- Returns:
- norm squared.
-
distance
public double distance(GeoTuple4D_F64 t)
- Overrides:
distancein classGeoTuple_F64<T extends GeoTuple4D_F64>
-
distance2
public double distance2(GeoTuple4D_F64 t)
- Overrides:
distance2in classGeoTuple_F64<T extends GeoTuple4D_F64>
-
print
public void print()
-
isNaN
public boolean isNaN()
-
setX
public void setX(double x)
-
setY
public void setY(double y)
-
setZ
public void setZ(double z)
-
setW
public void setW(double w)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG