Uses of Class
org.apache.commons.math.geometry.Vector3D
Packages that use Vector3D
Package
Description
This package provides basic 3D geometry components.
-
Uses of Vector3D in org.apache.commons.math.geometry
Fields in org.apache.commons.math.geometry declared as Vector3DModifier and TypeFieldDescriptionstatic final Vector3D
Vector3D.MINUS_I
Opposite of the first canonical vector (coordinates: -1, 0, 0).static final Vector3D
Vector3D.MINUS_J
Opposite of the second canonical vector (coordinates: 0, -1, 0).static final Vector3D
Vector3D.MINUS_K
Opposite of the third canonical vector (coordinates: 0, 0, -1).static final Vector3D
Vector3D.NaN
A vector with all coordinates set to NaN.static final Vector3D
Vector3D.NEGATIVE_INFINITY
A vector with all coordinates set to negative infinity.static final Vector3D
Vector3D.PLUS_I
First canonical vector (coordinates: 1, 0, 0).static final Vector3D
Vector3D.PLUS_J
Second canonical vector (coordinates: 0, 1, 0).static final Vector3D
Vector3D.PLUS_K
Third canonical vector (coordinates: 0, 0, 1).static final Vector3D
Vector3D.POSITIVE_INFINITY
A vector with all coordinates set to positive infinity.static final Vector3D
Vector3D.ZERO
Null vector (coordinates: 0, 0, 0).Methods in org.apache.commons.math.geometry that return Vector3DModifier and TypeMethodDescriptionAdd a scaled vector to the instance.Add a vector to the instance.Rotation.applyInverseTo
(Vector3D u) Apply the inverse of the rotation to a vector.Apply the rotation to a vector.static Vector3D
Vector3D.crossProduct
(Vector3D v1, Vector3D v2) Compute the cross-product of two vectors.RotationOrder.getA1()
Get the axis of the first rotation.RotationOrder.getA2()
Get the axis of the second rotation.RotationOrder.getA3()
Get the axis of the second rotation.Rotation.getAxis()
Get the normalized axis of the rotation.Vector3D.negate()
Get the opposite of the instance.Vector3D.normalize()
Get a normalized vector aligned with the instance.Vector3D.orthogonal()
Get a vector orthogonal to the instance.Parses a string to produce aVector3D
object.Vector3DFormat.parse
(String source, ParsePosition pos) Parses a string to produce aVector3D
object.Vector3D.scalarMultiply
(double a) Multiply the instance by a scalarSubtract a scaled vector from the instance.Subtract a vector from the instance.Methods in org.apache.commons.math.geometry with parameters of type Vector3DModifier and TypeMethodDescriptionAdd a scaled vector to the instance.Add a vector to the instance.static double
Compute the angular separation between two vectors.Rotation.applyInverseTo
(Vector3D u) Apply the inverse of the rotation to a vector.Apply the rotation to a vector.static Vector3D
Vector3D.crossProduct
(Vector3D v1, Vector3D v2) Compute the cross-product of two vectors.static double
Compute the distance between two vectors according to the L2 norm.static double
Compute the distance between two vectors according to the L1 norm.static double
Vector3D.distanceInf
(Vector3D v1, Vector3D v2) Compute the distance between two vectors according to the L∞ norm.static double
Vector3D.distanceSq
(Vector3D v1, Vector3D v2) Compute the square of the distance between two vectors.static double
Vector3D.dotProduct
(Vector3D v1, Vector3D v2) Compute the dot-product of two vectors.Vector3DFormat.format
(Vector3D vector, StringBuffer toAppendTo, FieldPosition pos) Formats aVector3D
object to produce a string.static String
Vector3DFormat.formatVector3D
(Vector3D v) This static method callsFormat.format(Object)
on a default instance of Vector3DFormat.Subtract a scaled vector from the instance.Subtract a vector from the instance.Constructors in org.apache.commons.math.geometry with parameters of type Vector3DModifierConstructorDescriptionBuild a rotation from an axis and an angle.Build one of the rotations that transform one vector into another one.Build the rotation that transforms a pair of vector into another pair.Multiplicative constructor Build a vector from another one and a scale factor.Linear constructor Build a vector from two other ones and corresponding scale factors.Linear constructor Build a vector from three other ones and corresponding scale factors.Vector3D
(double a1, Vector3D u1, double a2, Vector3D u2, double a3, Vector3D u3, double a4, Vector3D u4) Linear constructor Build a vector from four other ones and corresponding scale factors.