georegression.struct.point
Class Vector4D_F32
- java.lang.Object
-
- georegression.struct.GeoTuple<T>
-
- georegression.struct.GeoTuple_F32<T>
-
- georegression.struct.GeoTuple4D_F32<Vector4D_F32>
-
- georegression.struct.point.Vector4D_F32
-
- All Implemented Interfaces:
- java.io.Serializable
public class Vector4D_F32 extends GeoTuple4D_F32<Vector4D_F32>
Vector in 4D space- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class georegression.struct.GeoTuple4D_F32
w, x, y, z
-
-
Constructor Summary
Constructors Constructor and Description Vector4D_F32()Vector4D_F32(float x, float y, float z, float w)Vector4D_F32(Point4D_F32 a, Point4D_F32 b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description Vector4D_F32copy()Generic copy routine.Vector4D_F32createNewInstance()Creates a new tuple instance of the same type.floatdot(Vector4D_F32 a)voidnormalize()voidset(Vector4D_F32 v)Vector4D_F32times(float scalar)java.lang.StringtoString()-
Methods inherited from class georegression.struct.GeoTuple4D_F32
distance, distance2, getDimension, getIndex, getW, getX, getY, getZ, isIdentical, isIdentical, isIdentical, isNaN, norm, normSq, print, set, setIndex, setW, setX, setY, setZ
-
-
-
-
Constructor Detail
-
Vector4D_F32
public Vector4D_F32(float x, float y, float z, float w)
-
Vector4D_F32
public Vector4D_F32()
-
Vector4D_F32
public Vector4D_F32(Point4D_F32 a, Point4D_F32 b)
-
-
Method Detail
-
set
public void set(Vector4D_F32 v)
-
times
public Vector4D_F32 times(float scalar)
-
copy
public Vector4D_F32 copy()
Description copied from class:GeoTuple_F32Generic copy routine. It is recommended that this be overridden with a faster implementation.- Overrides:
copyin classGeoTuple_F32<Vector4D_F32>- Returns:
- An exact copy of this GeoTuple.
-
createNewInstance
public Vector4D_F32 createNewInstance()
Description copied from class:GeoTupleCreates a new tuple instance of the same type.
- Specified by:
createNewInstancein classGeoTuple<Vector4D_F32>- Returns:
- new tuple instance.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
normalize
public void normalize()
-
dot
public float dot(Vector4D_F32 a)
-
-
DataMelt 3.0 © DataMelt by jWork.ORG