Example usage for Java org.apache.commons.math3.geometry.euclidean.threed Rotation fields, constructors, methods, implement or subclass
The text is from its open source code.
Rotation | IDENTITY Identity rotation. |
Rotation(double q0, double q1, double q2, double q3, boolean needsNormalization) Build a rotation from the quaternion coordinates. | |
Rotation(Vector3D axis, double angle) Build a rotation from an axis and an angle. | |
Rotation(double[][] m, double threshold) Build a rotation from a 3X3 matrix. | |
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. | |
Rotation(RotationOrder order, double alpha1, double alpha2, double alpha3) Build a rotation from three Cardan or Euler elementary rotations. |
Vector3D | applyInverseTo(Vector3D u) Apply the inverse of the rotation to a vector. |
Rotation | applyInverseTo(Rotation r) Apply the inverse of the instance to another rotation. |
Vector3D | applyTo(Vector3D u) Apply the rotation to a vector. |
Rotation | applyTo(Rotation r) Apply the instance to another rotation. |
void | applyTo(final double[] in, final double[] out) Apply the rotation to a vector stored in an array. |
double | distance(Rotation r1, Rotation r2) Compute the distance between two rotations. |
double | getAngle() Get the angle of the rotation. |
double[] | getAngles(RotationOrder order) Get the Cardan or Euler angles corresponding to the instance. |
Vector3D | getAxis() Get the normalized axis of the rotation. |
double[][] | getMatrix() Get the 3X3 matrix corresponding to the instance |
double | getQ0() Get the scalar coordinate of the quaternion. |
double | getQ1() Get the first coordinate of the vectorial part of the quaternion. |
double | getQ2() Get the second coordinate of the vectorial part of the quaternion. |
double | getQ3() Get the third coordinate of the vectorial part of the quaternion. |
Rotation | revert() Revert a rotation. |