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 Vector3DVector3D.MINUS_IOpposite of the first canonical vector (coordinates: -1, 0, 0).static final Vector3DVector3D.MINUS_JOpposite of the second canonical vector (coordinates: 0, -1, 0).static final Vector3DVector3D.MINUS_KOpposite of the third canonical vector (coordinates: 0, 0, -1).static final Vector3DVector3D.NaNA vector with all coordinates set to NaN.static final Vector3DVector3D.NEGATIVE_INFINITYA vector with all coordinates set to negative infinity.static final Vector3DVector3D.PLUS_IFirst canonical vector (coordinates: 1, 0, 0).static final Vector3DVector3D.PLUS_JSecond canonical vector (coordinates: 0, 1, 0).static final Vector3DVector3D.PLUS_KThird canonical vector (coordinates: 0, 0, 1).static final Vector3DVector3D.POSITIVE_INFINITYA vector with all coordinates set to positive infinity.static final Vector3DVector3D.ZERONull 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 Vector3DVector3D.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 aVector3Dobject.Vector3DFormat.parse(String source, ParsePosition pos) Parses a string to produce aVector3Dobject.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 doubleCompute 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 Vector3DVector3D.crossProduct(Vector3D v1, Vector3D v2) Compute the cross-product of two vectors.static doubleCompute the distance between two vectors according to the L2 norm.static doubleCompute the distance between two vectors according to the L1 norm.static doubleVector3D.distanceInf(Vector3D v1, Vector3D v2) Compute the distance between two vectors according to the L∞ norm.static doubleVector3D.distanceSq(Vector3D v1, Vector3D v2) Compute the square of the distance between two vectors.static doubleVector3D.dotProduct(Vector3D v1, Vector3D v2) Compute the dot-product of two vectors.Vector3DFormat.format(Vector3D vector, StringBuffer toAppendTo, FieldPosition pos) Formats aVector3Dobject to produce a string.static StringVector3DFormat.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.