Modifier and Type | Method | Description |
---|---|---|
default void |
RotationScaleMatrixReadOnly.inverseTransform(QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Performs the inverse of the transform to the given quaternion
quaternionOriginal and
stores the result into quaternionTransformed . |
default void |
RotationScaleMatrixReadOnly.transform(QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Transforms the given quaternion
quaternionOriginal and stores the result into
quaternionTransformed . |
Modifier and Type | Method | Description |
---|---|---|
default void |
Orientation3DReadOnly.inverseTransform(QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Performs the inverse of the transform to the given
quaternionOriginal and stores the
result in quaternionTransformed . |
default void |
Orientation3DReadOnly.transform(QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Transforms the given
quaternionOriginal and stores the result in
quaternionTransformed . |
Modifier and Type | Method | Description |
---|---|---|
static double |
YawPitchRollConversion.computePitch(QuaternionReadOnly quaternion) |
Computes the pitch from a quaternion.
|
static double |
YawPitchRollConversion.computeRoll(QuaternionReadOnly quaternion) |
Computes the roll from a quaternion.
|
static double |
YawPitchRollConversion.computeYaw(QuaternionReadOnly quaternion) |
Computes the yaw from a quaternion.
|
static void |
AxisAngleConversion.convertQuaternionToAxisAngle(QuaternionReadOnly quaternion,
AxisAngleBasics axisAngleToPack) |
Converts the given quaternion into an axis-angle.
|
static void |
RotationMatrixConversion.convertQuaternionToMatrix(QuaternionReadOnly quaternion,
RotationMatrix matrixToPack) |
Converts the given quaternion into a rotation matrix.
|
static void |
RotationVectorConversion.convertQuaternionToRotationVector(QuaternionReadOnly quaternion,
Vector3DBasics rotationVectorToPack) |
Converts the given quaternion into a rotation vector.
|
static void |
YawPitchRollConversion.convertQuaternionToYawPitchRoll(QuaternionReadOnly quaternion,
double[] yawPitchRollToPack) |
Converts the quaternion into yaw-pitch-roll.
|
static void |
YawPitchRollConversion.convertQuaternionToYawPitchRoll(QuaternionReadOnly quaternion,
Tuple3DBasics eulerAnglesToPack) |
Converts the given quaternion into yaw-pitch-roll.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
QuaternionTools.addTransform(QuaternionReadOnly quaternion,
Tuple3DReadOnly tupleOriginal,
Tuple3DBasics tupleTransformed) |
Transforms the tuple
tupleOriginal using quaternion and adds the result to
tupleTransformed . |
static void |
QuaternionTools.appendPitchRotation(QuaternionReadOnly quaternionOriginal,
double pitch,
QuaternionBasics quaternionToPack) |
Append a rotation about the y-axis to
quaternionOriginal and stores the result in
quaternionToPack . |
static void |
QuaternionTools.appendRollRotation(QuaternionReadOnly quaternionOriginal,
double roll,
QuaternionBasics quaternionToPack) |
Append a rotation about the x-axis to
quaternionOriginal and stores the result in
quaternionToPack . |
static void |
QuaternionTools.appendYawRotation(QuaternionReadOnly quaternionOriginal,
double yaw,
QuaternionBasics quaternionToPack) |
Append a rotation about the z-axis to
quaternionOriginal and stores the result in
quaternionToPack . |
static void |
EuclidCoreTestTools.assertQuaternionEquals(java.lang.String messagePrefix,
QuaternionReadOnly expected,
QuaternionReadOnly actual,
double epsilon) |
Asserts on a per component basis that the two quaternions are equal to an
epsilon . |
static void |
EuclidCoreTestTools.assertQuaternionEquals(java.lang.String messagePrefix,
QuaternionReadOnly expected,
QuaternionReadOnly actual,
double epsilon,
java.lang.String format) |
Asserts on a per component basis that the two quaternions are equal to an
epsilon . |
static void |
EuclidCoreTestTools.assertQuaternionEquals(QuaternionReadOnly expected,
QuaternionReadOnly actual,
double epsilon) |
Asserts on a per component basis that the two quaternions are equal to an
epsilon . |
static void |
EuclidCoreTestTools.assertQuaternionEqualsSmart(java.lang.String messagePrefix,
QuaternionReadOnly expected,
QuaternionReadOnly actual,
double epsilon) |
|
static void |
EuclidCoreTestTools.assertQuaternionEqualsSmart(java.lang.String messagePrefix,
QuaternionReadOnly expected,
QuaternionReadOnly actual,
double epsilon,
java.lang.String format) |
|
static void |
EuclidCoreTestTools.assertQuaternionEqualsSmart(QuaternionReadOnly expected,
QuaternionReadOnly actual,
double epsilon) |
|
static void |
EuclidCoreTestTools.assertQuaternionEqualsUsingDifference(java.lang.String messagePrefix,
QuaternionReadOnly expected,
QuaternionReadOnly actual,
double epsilon) |
|
static void |
EuclidCoreTestTools.assertQuaternionEqualsUsingDifference(java.lang.String messagePrefix,
QuaternionReadOnly expected,
QuaternionReadOnly actual,
double epsilon,
java.lang.String format) |
|
static void |
EuclidCoreTestTools.assertQuaternionEqualsUsingDifference(QuaternionReadOnly expected,
QuaternionReadOnly actual,
double epsilon) |
|
static void |
EuclidCoreTestTools.assertQuaternionGeometricallyEquals(java.lang.String messagePrefix,
QuaternionReadOnly expected,
QuaternionReadOnly actual,
double epsilon) |
Asserts on a per component basis that the two quaternions represent the same geometry to an
epsilon . |
static void |
EuclidCoreTestTools.assertQuaternionGeometricallyEquals(java.lang.String messagePrefix,
QuaternionReadOnly expected,
QuaternionReadOnly actual,
double epsilon,
java.lang.String format) |
Asserts on a per component basis that the two quaternions represent the same geometry to an
epsilon . |
static void |
EuclidCoreTestTools.assertQuaternionGeometricallyEquals(QuaternionReadOnly expected,
QuaternionReadOnly actual,
double epsilon) |
Asserts on a per component basis that the two quaternions represent the same geometry to an
epsilon . |
static void |
EuclidCoreTestTools.assertQuaternionIsSetToZero(java.lang.String messagePrefix,
QuaternionReadOnly quaternionToAssert) |
Assert that
QuaternionBasics.setToZero() has just been called on the given quaternion. |
static void |
EuclidCoreTestTools.assertQuaternionIsSetToZero(java.lang.String messagePrefix,
QuaternionReadOnly quaternionToAssert,
java.lang.String format) |
Assert that
QuaternionBasics.setToZero() has just been called on the given quaternion. |
static void |
EuclidCoreTestTools.assertQuaternionIsSetToZero(QuaternionReadOnly quaternionToAssert) |
Assert that
QuaternionBasics.setToZero() has just been called on the given quaternion. |
static void |
EuclidCoreTestTools.assertQuaternionIsUnitary(java.lang.String messagePrefix,
QuaternionReadOnly quaternionToAssert,
double epsilon) |
Asserts that the norm of the given quaternion is equal to
1.0 +/- epsilon . |
static void |
EuclidCoreTestTools.assertQuaternionIsUnitary(java.lang.String messagePrefix,
QuaternionReadOnly quaternionToAssert,
double epsilon,
java.lang.String format) |
Asserts that the norm of the given quaternion is equal to
1.0 +/- epsilon . |
static void |
EuclidCoreTestTools.assertQuaternionIsUnitary(QuaternionReadOnly quaternionToAssert,
double epsilon) |
Asserts that the norm of the given quaternion is equal to
1.0 +/- epsilon . |
static double |
TransformationTools.computeTransformedX(QuaternionReadOnly quaternion,
boolean conjugate,
double x,
double y,
double z) |
Computes and returns the x-coordinate resulting from the transformation of
tupleOriginal
by quaternion . |
static double |
TransformationTools.computeTransformedX(QuaternionReadOnly quaternion,
boolean conjugate,
Tuple3DReadOnly tupleOriginal) |
Computes and returns the x-coordinate resulting from the transformation of
tupleOriginal
by quaternion . |
static double |
TransformationTools.computeTransformedY(QuaternionReadOnly quaternion,
boolean conjugate,
double x,
double y,
double z) |
Computes and returns the y-coordinate resulting from the transformation of
tupleOriginal
by quaternion . |
static double |
TransformationTools.computeTransformedY(QuaternionReadOnly quaternion,
boolean conjugate,
Tuple3DReadOnly tupleOriginal) |
Computes and returns the y-coordinate resulting from the transformation of
tupleOriginal
by quaternion . |
static double |
TransformationTools.computeTransformedZ(QuaternionReadOnly quaternion,
boolean conjugate,
double x,
double y,
double z) |
Computes and returns the z-coordinate resulting from the transformation of
tupleOriginal
by quaternion . |
static double |
TransformationTools.computeTransformedZ(QuaternionReadOnly quaternion,
boolean conjugate,
Tuple3DReadOnly tupleOriginal) |
Computes and returns the z-coordinate resulting from the transformation of
tupleOriginal
by quaternion . |
static double |
QuaternionTools.distancePrecise(QuaternionReadOnly q1,
QuaternionReadOnly q2) |
Computes the distance between the two given quaternions.
|
static void |
AxisAngleTools.inverseTransform(AxisAngleReadOnly axisAngle,
QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Performs the inverse of the transform of the quaternion
quaternionOriginal using
axisAngle and stores the result in quaternionTransformed . |
static void |
QuaternionTools.inverseTransform(QuaternionReadOnly quaternion,
Matrix3DReadOnly matrixOriginal,
Matrix3D matrixTransformed) |
Performs the inverse of the transform of the matrix
matrixOriginal using
quaternion and stores the result in matrixTransformed . |
static void |
QuaternionTools.inverseTransform(QuaternionReadOnly quaternion,
RotationMatrixReadOnly rotationMatrixOriginal,
RotationMatrix rotationMatrixTransformed) |
Performs the inverse of the transform of the rotation matrix
rotationMatrixOriginal using
quaternion and stores the result in rotationMatrixTransformed . |
static void |
QuaternionTools.inverseTransform(QuaternionReadOnly quaternion,
Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfTransformInXYPlane) |
Performs the inverse of the transform of the tuple
tupleOriginal using quaternion
and stores the result in tupleTransformed . |
static void |
QuaternionTools.inverseTransform(QuaternionReadOnly quaternion,
Tuple3DReadOnly tupleOriginal,
Tuple3DBasics tupleTransformed) |
Performs the inverse of the transform of the tuple
tupleOriginal using quaternion
and stores the result in tupleTransformed . |
static void |
QuaternionTools.inverseTransform(QuaternionReadOnly quaternion,
QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Performs the inverse of the transform of the quaternion
quaternionOriginal using
quaternion and stores the result in quaternionTransformed . |
static void |
QuaternionTools.inverseTransform(QuaternionReadOnly quaternion,
Vector4DReadOnly vectorOriginal,
Vector4DBasics vectorTransformed) |
Performs the inverse of the transform of the vector part of
vectorOriginal using
quaternion and stores the result in vectorTransformed . |
static void |
QuaternionTools.multiply(Orientation3DReadOnly orientation1,
boolean inverse1,
QuaternionReadOnly orientation2,
boolean inverse2,
QuaternionBasics quaternionToPack) |
Performs the multiplication of
orientation1 and orientation2 and stores the
result in quaternionToPack . |
static void |
QuaternionTools.multiply(QuaternionReadOnly orientation1,
boolean inverse1,
Orientation3DReadOnly orientation2,
boolean inverse2,
QuaternionBasics quaternionToPack) |
Performs the multiplication of
orientation1 and orientation2 and stores the
result in quaternionToPack . |
static void |
QuaternionTools.multiply(QuaternionReadOnly q1,
QuaternionReadOnly q2,
QuaternionBasics quaternionToPack) |
Performs the multiplication of
q1 and q2 and stores the result in
quaternionToPack . |
static void |
QuaternionTools.multiplyConjugateBoth(QuaternionReadOnly q1,
QuaternionReadOnly q2,
QuaternionBasics quaternionToPack) |
Performs the multiplication of the conjugate of
q1 and the conjugate of q2 and
stores the result in quaternionToPack . |
static void |
QuaternionTools.multiplyConjugateLeft(QuaternionReadOnly q1,
QuaternionReadOnly q2,
QuaternionBasics quaternionToPack) |
Performs the multiplication of
q1 conjugated and q2 and stores the result in
quaternionToPack . |
static void |
QuaternionTools.multiplyConjugateRight(QuaternionReadOnly q1,
QuaternionReadOnly q2,
QuaternionBasics quaternionToPack) |
Performs the multiplication of
q1 and q2 conjugated and stores the result in
quaternionToPack . |
static void |
QuaternionTools.prependPitchRotation(double pitch,
QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionToPack) |
Prepend a rotation about the y-axis to
quaternionOriginal and stores the result in
quaternionToPack . |
static void |
QuaternionTools.prependRollRotation(double roll,
QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionToPack) |
Append a rotation about the x-axis to
quaternionOriginal and stores the result in
quaternionToPack . |
static void |
QuaternionTools.prependYawRotation(double yaw,
QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionToPack) |
Prepend a rotation about the z-axis to
quaternionOriginal and stores the result in
quaternionToPack . |
static void |
QuaternionTools.subTransform(QuaternionReadOnly quaternion,
Tuple3DReadOnly tupleOriginal,
Tuple3DBasics tupleTransformed) |
Transforms the tuple
tupleOriginal using quaternion and subtracts the result to
tupleTransformed . |
static void |
AxisAngleTools.transform(AxisAngleReadOnly axisAngle,
QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Transforms the quaternion
quaternionOriginal using axisAngle and stores the
result in quaternionTransformed . |
static void |
QuaternionTools.transform(QuaternionReadOnly quaternion,
Matrix3DReadOnly matrixOriginal,
Matrix3D matrixTransformed) |
Transforms the matrix
matrixOriginal using quaternion and stores the result in
matrixTransformed . |
static void |
QuaternionTools.transform(QuaternionReadOnly quaternion,
RotationMatrixReadOnly rotationMatrixOriginal,
RotationMatrix rotationMatrixTransformed) |
Transforms the rotation matrix
rotationMatrixOriginal using quaternion and stores
the result in rotationMatrixTransformed . |
static void |
QuaternionTools.transform(QuaternionReadOnly quaternion,
Tuple2DReadOnly tupleOriginal,
Tuple2DBasics tupleTransformed,
boolean checkIfTransformInXYPlane) |
Transforms the tuple
tupleOriginal using quaternion and stores the result in
tupleTransformed . |
static void |
QuaternionTools.transform(QuaternionReadOnly quaternion,
Tuple3DReadOnly tupleOriginal,
Tuple3DBasics tupleTransformed) |
Transforms the tuple
tupleOriginal using quaternion and stores the result in
tupleTransformed . |
static void |
QuaternionTools.transform(QuaternionReadOnly quaternion,
QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Transforms the quaternion
quaternionOriginal using quaternion and stores the
result in quaternionTransformed . |
static void |
QuaternionTools.transform(QuaternionReadOnly quaternion,
Vector4DReadOnly vectorOriginal,
Vector4DBasics vectorTransformed) |
Transforms the vector part of
vectorOriginal using quaternion and stores the
result in vectorTransformed . |
Modifier and Type | Method | Description |
---|---|---|
QuaternionReadOnly |
QuaternionBasedTransform.getQuaternion() |
Get the read-only reference to the quaternion of this transform.
|
Modifier and Type | Method | Description |
---|---|---|
void |
AffineTransform.inverseTransform(QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Performs the inverse of the transform on the given quaternion
quaternionOriginal and
stores the result in quaternionTransformed . |
void |
QuaternionBasedTransform.inverseTransform(QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Performs the inverse of the transform on the given quaternion
quaternionOriginal and
stores the result in quaternionTransformed . |
void |
RigidBodyTransform.inverseTransform(QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Performs the inverse of the transform on the given quaternion
quaternionOriginal and
stores the result in quaternionTransformed . |
void |
AffineTransform.set(QuaternionReadOnly quaternion,
double scaleX,
double scaleY,
double scaleZ,
Tuple3DReadOnly translation) |
Sets the rotation, scale, and translation parts of this transform separately.
|
void |
AffineTransform.set(QuaternionReadOnly quaternion,
double scale,
Tuple3DReadOnly translation) |
Sets the rotation, scale, and translation parts of this transform separately.
|
void |
AffineTransform.set(QuaternionReadOnly quaternion,
Tuple3DReadOnly scales,
Tuple3DReadOnly translation) |
Sets the rotation, scale, and translation parts of this transform separately.
|
void |
QuaternionBasedTransform.set(QuaternionReadOnly quaternion,
Tuple3DReadOnly translation) |
Sets this quaternion-based transform to the given quaternion and translation.
|
void |
AffineTransform.setRotation(QuaternionReadOnly quaternion) |
Sets the rotation part of this transform to the given quaternion.
|
void |
QuaternionBasedTransform.setRotation(QuaternionReadOnly quaternion) |
Sets the rotation part of this transform to the given quaternion.
|
void |
AffineTransform.transform(QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Transforms the given
quaternionOriginal by this transform and stores the result in
quaternionTransformed . |
void |
QuaternionBasedTransform.transform(QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Transforms the given
quaternionOriginal by this transform and stores the result in
quaternionTransformed . |
void |
RigidBodyTransform.transform(QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Transforms the given
quaternionOriginal by this transform and stores the result in
quaternionTransformed . |
Constructor | Description |
---|---|
QuaternionBasedTransform(QuaternionReadOnly quaternion,
Tuple3DReadOnly translation) |
Creates a new quaternion-based transform and initializes it to the given quaternion and
translation.
|
Modifier and Type | Method | Description |
---|---|---|
void |
Transform.inverseTransform(QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Performs the inverse of the transform on the given quaternion
quaternionOriginal and
stores the result in quaternionTransformed . |
void |
Transform.transform(QuaternionReadOnly quaternionOriginal,
QuaternionBasics quaternionTransformed) |
Transforms the given
quaternionOriginal by this transform and stores the result in
quaternionTransformed . |
Modifier and Type | Class | Description |
---|---|---|
class |
Quaternion |
Class used to represent unit-quaternions which are used to represent 3D orientations.
|
class |
Quaternion32 |
Class used to represent unit-quaternions which are used to represent 3D orientations.
|
Constructor | Description |
---|---|
Quaternion(QuaternionReadOnly other) |
Creates a new quaternion and initializes it to
other . |
Modifier and Type | Interface | Description |
---|---|---|
interface |
QuaternionBasics |
Write and read interface for unit-quaternion used to represent 3D orientations.
|
Modifier and Type | Method | Description |
---|---|---|
default void |
QuaternionBasics.difference(QuaternionReadOnly q1,
QuaternionReadOnly q2) |
Sets this quaternion to the difference of
q1 and q2 . |
default double |
QuaternionReadOnly.distance(QuaternionReadOnly other) |
Computes and returns the distance from this quaternion to
other . |
default double |
QuaternionReadOnly.distancePrecise(QuaternionReadOnly other) |
Computes and returns the distance from this quaternion to
other . |
default boolean |
QuaternionReadOnly.geometricallyEquals(QuaternionReadOnly other,
double epsilon) |
Tests if
this and other represent the same orientation to an epsilon . |
default void |
QuaternionBasics.interpolate(QuaternionReadOnly qf,
double alpha) |
Performs a linear interpolation in SO(3) from
this to qf given the percentage
alpha . |
default void |
QuaternionBasics.interpolate(QuaternionReadOnly q0,
QuaternionReadOnly qf,
double alpha) |
Performs a linear interpolation in SO(3) from
q0 to qf given the percentage
alpha . |
default void |
QuaternionBasics.multiply(QuaternionReadOnly other) |
Multiplies this quaternion by
other . |
default void |
QuaternionBasics.multiply(QuaternionReadOnly q1,
QuaternionReadOnly q2) |
Sets this quaternion to the multiplication of
q1 and q2 . |
default void |
QuaternionBasics.multiplyConjugateBoth(QuaternionReadOnly other) |
Sets this quaternion to the multiplication of the conjugate of
this and other . |
default void |
QuaternionBasics.multiplyConjugateOther(QuaternionReadOnly other) |
Multiplies this quaternion by the conjugate of
other . |
default void |
QuaternionBasics.multiplyConjugateThis(QuaternionReadOnly other) |
Sets this quaternion to the multiplication of the conjugate of
this and other . |
default void |
QuaternionBasics.preMultiply(QuaternionReadOnly other) |
Pre-multiplies this quaternion by
other . |
default void |
QuaternionBasics.preMultiplyConjugateBoth(QuaternionReadOnly other) |
Sets this quaternion to the multiplication of the conjugate of
other and the conjugate of
this . |
default void |
QuaternionBasics.preMultiplyConjugateOther(QuaternionReadOnly other) |
Sets this quaternion to the multiplication of the conjugate of
other and this . |
default void |
QuaternionBasics.preMultiplyConjugateThis(QuaternionReadOnly other) |
Sets this quaternion to the multiplication of
other and the conjugate of this . |
default void |
QuaternionBasics.set(QuaternionReadOnly other) |
Sets this quaternion to
other . |
default void |
QuaternionBasics.setAndConjugate(QuaternionReadOnly other) |
Sets this quaternion to the conjugate of
other . |
default void |
QuaternionBasics.setAndInverse(QuaternionReadOnly other) |
Deprecated.
|
default void |
QuaternionBasics.setAndNegate(QuaternionReadOnly other) |
Sets this quaternion to
other and then calls QuaternionBasics.negate() . |
default void |
QuaternionBasics.setAndNormalize(QuaternionReadOnly other) |
Sets this tuple to
other and then calls QuaternionBasics.normalize() . |