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