georegression.struct.point
Class Vector3D_F32
- java.lang.Object
-
- georegression.struct.GeoTuple<T>
-
- georegression.struct.GeoTuple_F32<T>
-
- georegression.struct.GeoTuple3D_F32<Vector3D_F32>
-
- georegression.struct.point.Vector3D_F32
-
- All Implemented Interfaces:
- java.io.Serializable
public class Vector3D_F32 extends GeoTuple3D_F32<Vector3D_F32>
Spacial vector in 3D- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class georegression.struct.GeoTuple3D_F32
x, y, z
-
-
Constructor Summary
Constructors Constructor and Description Vector3D_F32()Vector3D_F32(float x, float y, float z)Vector3D_F32(GeoTuple3D_F32 orig)Vector3D_F32(Point3D_F32 a, Point3D_F32 b)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description floatacute(Vector3D_F32 a)Returns the acute angle between the two vectors.Vector3D_F32copy()Generic copy routine.Vector3D_F32createNewInstance()Creates a new tuple instance of the same type.Vector3D_F32cross(Vector3D_F32 b)voidcross(Vector3D_F32 a, Vector3D_F32 b)In-place cross product operation.floatdot(Vector3D_F32 a)Dot product between this and 'a' = this.x * a.x + this.y * a.y + this.z * a.zvoidminus(Point3D_F32 a, Point3D_F32 b)In-place minus operation.voidnormalize()voidset(Vector3D_F32 v)java.lang.StringtoString()-
Methods inherited from class georegression.struct.GeoTuple3D_F32
distance, distance2, getDimension, getIndex, getX, getY, getZ, isIdentical, isIdentical, isIdentical, isNaN, norm, normSq, plus, plusIP, print, scale, set, setIndex, setX, setY, setZ, times, timesIP
-
-
-
-
Constructor Detail
-
Vector3D_F32
public Vector3D_F32(GeoTuple3D_F32 orig)
-
Vector3D_F32
public Vector3D_F32(float x, float y, float z)
-
Vector3D_F32
public Vector3D_F32()
-
Vector3D_F32
public Vector3D_F32(Point3D_F32 a, Point3D_F32 b)
-
-
Method Detail
-
set
public void set(Vector3D_F32 v)
-
minus
public void minus(Point3D_F32 a, Point3D_F32 b)
In-place minus operation. this = a - b.- Parameters:
a- Pointb- Point
-
copy
public Vector3D_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<Vector3D_F32>- Returns:
- An exact copy of this GeoTuple.
-
cross
public void cross(Vector3D_F32 a, Vector3D_F32 b)
In-place cross product operation. this = a cross b- Parameters:
a- Vectorb- Vector
-
cross
public Vector3D_F32 cross(Vector3D_F32 b)
-
createNewInstance
public Vector3D_F32 createNewInstance()
Description copied from class:GeoTupleCreates a new tuple instance of the same type.
- Specified by:
createNewInstancein classGeoTuple<Vector3D_F32>- Returns:
- new tuple instance.
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
normalize
public void normalize()
-
dot
public float dot(Vector3D_F32 a)
Dot product between this and 'a' = this.x * a.x + this.y * a.y + this.z * a.z- Parameters:
a- A vector- Returns:
- dot product.
-
acute
public float acute(Vector3D_F32 a)
Returns the acute angle between the two vectors. Computed using the dot product.- Parameters:
a- Vector- Returns:
- Acute angle in radians between 'this' and 'a'.
-
-
DataMelt 3.0 © DataMelt by jWork.ORG