Example usage for Java org.apache.commons.math.geometry Vector3D fields, constructors, methods, implement or subclass
The text is from its open source code.
Vector3D | PLUS_I First canonical vector (coordinates: 1, 0, 0). |
Vector3D | PLUS_J Second canonical vector (coordinates: 0, 1, 0). |
Vector3D | PLUS_K Third canonical vector (coordinates: 0, 0, 1). |
Vector3D(double x, double y, double z) Simple constructor. | |
Vector3D | |
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 a1, Vector3D u1, double a2, Vector3D u2) Linear constructor Build a vector from two other ones and corresponding scale factors. |
Vector3D | add(double factor, Vector3D v) Add a scaled vector to the instance. |
Vector3D | add(Vector3D v) Add a vector to the instance. |
Vector3D | crossProduct(Vector3D v1, Vector3D v2) Compute the cross-product of two vectors. |
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 | getAlpha() Get the azimuth of the vector. |
double | getNorm() Get the L2 norm for the vector. |
double | getNormSq() Get the square of the norm for the vector. |
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() Get the opposite of the instance. |
Vector3D | normalize() Get a normalized vector aligned with the instance. |
Vector3D | subtract(Vector3D v) Subtract a vector from the instance. |