Package | Description |
---|---|
org.apache.commons.math.geometry |
This package provides basic 3D geometry components.
|
Modifier and Type | Field and 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).
|
Modifier and Type | Method and 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(String source)
Parses a string to produce a
Vector3D object. |
Vector3D |
Vector3DFormat.parse(String source,
ParsePosition pos)
Parses a string to produce a
Vector3D object. |
Vector3D |
Vector3D.scalarMultiply(double a)
Multiply the instance by a scalar
|
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.
|
Modifier and Type | Method and 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.
|
StringBuffer |
Vector3DFormat.format(Vector3D vector,
StringBuffer toAppendTo,
FieldPosition pos)
Formats a
Vector3D object to produce a string. |
static String |
Vector3DFormat.formatVector3D(Vector3D v)
This static method calls
Format.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.
|
Constructor and 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.
|
Copyright © 2003–2016. All rights reserved.