Example usage for Java org.apache.commons.math3.geometry.euclidean.threed Vector3D fields, constructors, methods, implement or subclass
The text is from its open source code.
Vector3D | ZERO Null vector (coordinates: 0, 0, 0). |
Vector3D | PLUS_I First canonical vector (coordinates: 1, 0, 0). |
Vector3D | MINUS_I Opposite of the first canonical vector (coordinates: -1, 0, 0). |
Vector3D | PLUS_J Second canonical vector (coordinates: 0, 1, 0). |
Vector3D | MINUS_J Opposite of the second canonical vector (coordinates: 0, -1, 0). |
Vector3D | PLUS_K Third canonical vector (coordinates: 0, 0, 1). |
Vector3D | MINUS_K Opposite of the third canonical vector (coordinates: 0, 0, -1). |
Vector3D(double x, double y, double z) Simple constructor. | |
Vector3D(double alpha, double delta) Simple constructor. | |
Vector3D(double a, Vector3D u) Multiplicative constructor Build a vector from another one and a scale factor. | |
Vector3D(double[] v) Simple constructor. | |
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. |
Vector3D | add(final Vector |
Vector3D | add(double factor, final Vector |
double | angle(Vector3D v1, Vector3D v2) Compute the angular separation between two vectors. |
Vector3D | crossProduct(final Vector Compute the cross-product of the instance with another vector. |
Vector3D | crossProduct(final Vector3D v1, final Vector3D v2) Compute the cross-product of two vectors. |
double | distance(Vector |
double | distance(Vector3D v1, Vector3D v2) Compute the distance between two vectors according to the L2 norm. |
double | distanceSq(Vector3D v1, Vector3D v2) Compute the square of the distance between two vectors. |
double | dotProduct(Vector3D v1, Vector3D v2) Compute the dot-product of two vectors. |
double | dotProduct(final Vector The implementation uses specific multiplication and addition algorithms to preserve accuracy and reduce cancellation effects. |
boolean | equals(Object other) Test for the equality of two 3D vectors. |
double | getAlpha() Get the azimuth of the vector. |
double | getDelta() Get the elevation of the vector. |
double | getNorm() |
double | getNormSq() |
double | getX() Get the abscissa of the vector. |
double | getY() Get the ordinate of the vector. |
double | getZ() Get the height of the vector. |
Vector3D | negate() |
Vector3D | normalize() |
Vector3D | orthogonal() Get a vector orthogonal to the instance. |
Vector3D | scalarMultiply(double a) |
Vector3D | subtract(final Vector |
double[] | toArray() Get the vector coordinates as a dimension 3 array. |