Java org.apache.commons.math3.geometry.euclidean.threed Rotation fields, constructors, methods, implement or subclass

Example usage for Java org.apache.commons.math3.geometry.euclidean.threed Rotation fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for org.apache.commons.math3.geometry.euclidean.threed Rotation.

The text is from its open source code.

Field

RotationIDENTITY
Identity rotation.

Constructor

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.

Method

Vector3DapplyInverseTo(Vector3D u)
Apply the inverse of the rotation to a vector.
RotationapplyInverseTo(Rotation r)
Apply the inverse of the instance to another rotation.
Vector3DapplyTo(Vector3D u)
Apply the rotation to a vector.
RotationapplyTo(Rotation r)
Apply the instance to another rotation.
voidapplyTo(final double[] in, final double[] out)
Apply the rotation to a vector stored in an array.
doubledistance(Rotation r1, Rotation r2)
Compute the distance between two rotations.
doublegetAngle()
Get the angle of the rotation.
double[]getAngles(RotationOrder order)
Get the Cardan or Euler angles corresponding to the instance.
Vector3DgetAxis()
Get the normalized axis of the rotation.
double[][]getMatrix()
Get the 3X3 matrix corresponding to the instance
doublegetQ0()
Get the scalar coordinate of the quaternion.
doublegetQ1()
Get the first coordinate of the vectorial part of the quaternion.
doublegetQ2()
Get the second coordinate of the vectorial part of the quaternion.
doublegetQ3()
Get the third coordinate of the vectorial part of the quaternion.
Rotationrevert()
Revert a rotation.