public final class QuaternionHelper
extends java.lang.Object
Quaternion objects.Quaternion| Modifier and Type | Method and Description |
|---|---|
static Quaternion |
calculateQuaternionDifference(Quaternion qStart,
Quaternion qEnd)
Calculates the rotation which is needed to get from
qStart to qEnd. |
static Quaternion |
inverse(Quaternion q)
Inverses the quaternion which means that the rotation is reversed.
|
static Quaternion |
multiply(Quaternion q1,
Quaternion q2)
Multiplies two quaternions with each other.
|
public static Quaternion calculateQuaternionDifference(Quaternion qStart, Quaternion qEnd)
qStart to qEnd.qStart - the start quaternionqEnd - the end quaternionqStart to qEndjava.lang.NullPointerException - if qStart or qEnd is nullpublic static Quaternion inverse(Quaternion q)
q - the quaternion which should be inversedqjava.lang.NullPointerException - if q is nullpublic static Quaternion multiply(Quaternion q1, Quaternion q2)
q1 - the first quaternionq2 - the second quaternionjava.lang.NullPointerException - if q1 or q2 is null