Example usage for Java org.apache.commons.math3.complex Quaternion fields, constructors, methods, implement or subclass
The text is from its open source code.
Quaternion(final double a, final double b, final double c, final double d) Builds a quaternion from its components. | |
Quaternion(final double scalar, final double[] v) Builds a quaternion from scalar and vector parts. |
double | dotProduct(final Quaternion q1, final Quaternion q2) Computes the dot-product of two quaternions. |
double | dotProduct(final Quaternion q) Computes the dot-product of the instance by a quaternion. |
Quaternion | getConjugate() Returns the conjugate quaternion of the instance. |
double | getQ0() Gets the first component of the quaternion (scalar part). |
double | getQ1() Gets the second component of the quaternion (first component of the vector part). |
double | getQ2() Gets the third component of the quaternion (second component of the vector part). |
double | getQ3() Gets the fourth component of the quaternion (third component of the vector part). |
double | getScalarPart() Gets the scalar part of the quaternion. |
double[] | getVectorPart() Gets the three components of the vector part of the quaternion. |
Quaternion | multiply(final Quaternion q) Returns the Hamilton product of the instance by a quaternion. |
Quaternion | multiply(final double alpha) Multiplies the instance by a scalar. |
Quaternion | normalize() Computes the normalized quaternion (the versor of the instance). |