Uses of Class
org.apache.commons.math.geometry.Vector3D
-
Packages that use Vector3D Package Description org.apache.commons.math.geometry 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 Vector3D Modifier and Type Field Description static Vector3D
Vector3D. MINUS_I
Opposite of the first canonical vector (coordinates: -1, 0, 0).static Vector3D
Vector3D. MINUS_J
Opposite of the second canonical vector (coordinates: 0, -1, 0).static Vector3D
Vector3D. MINUS_K
Opposite of the third canonical vector (coordinates: 0, 0, -1).static Vector3D
Vector3D. NaN
A vector with all coordinates set to NaN.static Vector3D
Vector3D. NEGATIVE_INFINITY
A vector with all coordinates set to negative infinity.static Vector3D
Vector3D. PLUS_I
First canonical vector (coordinates: 1, 0, 0).static Vector3D
Vector3D. PLUS_J
Second canonical vector (coordinates: 0, 1, 0).static Vector3D
Vector3D. PLUS_K
Third canonical vector (coordinates: 0, 0, 1).static Vector3D
Vector3D. POSITIVE_INFINITY
A vector with all coordinates set to positive infinity.static Vector3D
Vector3D. ZERO
Null vector (coordinates: 0, 0, 0).Methods in org.apache.commons.math.geometry that return Vector3D Modifier and Type Method Description Vector3D
Vector3D. add(double factor, Vector3D v)
Add a scaled vector to the instance.Vector3D
Vector3D. add(Vector3D v)
Add a vector to the instance.Vector3D
Rotation. applyInverseTo(Vector3D u)
Apply the inverse of the rotation to a vector.Vector3D
Rotation. applyTo(Vector3D u)
Apply the rotation to a vector.static Vector3D
Vector3D. crossProduct(Vector3D v1, Vector3D v2)
Compute the cross-product of two vectors.Vector3D
RotationOrder. getA1()
Get the axis of the first rotation.Vector3D
RotationOrder. getA2()
Get the axis of the second rotation.Vector3D
RotationOrder. getA3()
Get the axis of the second rotation.Vector3D
Rotation. getAxis()
Get the normalized axis of the rotation.Vector3D
Vector3D. negate()
Get the opposite of the instance.Vector3D
Vector3D. normalize()
Get a normalized vector aligned with the instance.Vector3D
Vector3D. orthogonal()
Get a vector orthogonal to the instance.Vector3D
Vector3DFormat. parse(java.lang.String source)
Parses a string to produce aVector3D
object.Vector3D
Vector3DFormat. parse(java.lang.String source, java.text.ParsePosition pos)
Parses a string to produce aVector3D
object.Vector3D
Vector3D. scalarMultiply(double a)
Multiply the instance by a scalarVector3D
Vector3D. subtract(double factor, Vector3D v)
Subtract a scaled vector from the instance.Vector3D
Vector3D. subtract(Vector3D v)
Subtract a vector from the instance.Methods in org.apache.commons.math.geometry with parameters of type Vector3D Modifier and Type Method Description Vector3D
Vector3D. add(double factor, Vector3D v)
Add a scaled vector to the instance.Vector3D
Vector3D. add(Vector3D v)
Add a vector to the instance.static double
Vector3D. angle(Vector3D v1, Vector3D v2)
Compute the angular separation between two vectors.Vector3D
Rotation. applyInverseTo(Vector3D u)
Apply the inverse of the rotation to a vector.Vector3D
Rotation. applyTo(Vector3D u)
Apply the rotation to a vector.static Vector3D
Vector3D. crossProduct(Vector3D v1, Vector3D v2)
Compute the cross-product of two vectors.static double
Vector3D. distance(Vector3D v1, Vector3D v2)
Compute the distance between two vectors according to the L2 norm.static double
Vector3D. distance1(Vector3D v1, Vector3D v2)
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.java.lang.StringBuffer
Vector3DFormat. format(Vector3D vector, java.lang.StringBuffer toAppendTo, java.text.FieldPosition pos)
Formats aVector3D
object to produce a string.static java.lang.String
Vector3DFormat. formatVector3D(Vector3D v)
This static method callsFormat.format(Object)
on a default instance of Vector3DFormat.Vector3D
Vector3D. subtract(double factor, Vector3D v)
Subtract a scaled vector from the instance.Vector3D
Vector3D. subtract(Vector3D v)
Subtract a vector from the instance.Constructors in org.apache.commons.math.geometry with parameters of type Vector3D Constructor Description Rotation(Vector3D axis, double angle)
Build a rotation from an axis and an angle.Rotation(Vector3D u, Vector3D v)
Build one of the rotations that transform one vector into another one.Rotation(Vector3D u1, Vector3D u2, Vector3D v1, Vector3D v2)
Build the rotation that transforms a pair of vector into another pair.Vector3D(double a, Vector3D u)
Multiplicative constructor Build a vector from another one and a scale factor.Vector3D(double a1, Vector3D u1, double a2, Vector3D u2)
Linear constructor Build a vector from two other ones and corresponding scale factors.Vector3D(double a1, Vector3D u1, double a2, Vector3D u2, double a3, Vector3D u3)
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.
-