Package | Description |
---|---|
de.jreality.math |
Mathematical utilities.
|
Modifier and Type | Method and Description |
---|---|
static Quaternion |
Quaternion.add(Quaternion dst,
Quaternion a,
Quaternion b) |
static Quaternion |
Quaternion.conjugate(Quaternion dst,
Quaternion src) |
static Quaternion |
Quaternion.copy(Quaternion dst,
Quaternion src) |
static Quaternion |
Quaternion.exp(Quaternion dst,
double t,
Quaternion src) |
Quaternion |
FactoredMatrix.getRotationQuaternion()
Get the rotation specified as a unit quaternion
|
static Quaternion |
Quaternion.invert(Quaternion dst,
Quaternion src) |
static Quaternion |
Quaternion.linearInterpolation(Quaternion dst,
Quaternion rot1,
Quaternion rot2,
double s) |
static Quaternion |
Quaternion.makeRotationQuaternionAngle(Quaternion q,
double angle,
double[] axis) |
static Quaternion |
Quaternion.makeRotationQuaternionCos(Quaternion q,
double cos,
double[] axis) |
static Quaternion |
Quaternion.negate(Quaternion dst,
Quaternion src) |
static Quaternion |
Quaternion.normalize(Quaternion dst,
Quaternion src) |
static Quaternion |
Quaternion.rotationMatrixToQuaternion(Quaternion q,
double[] mat)
Convert the 3x3 rotation matrix mat into a quaternion.
|
static Quaternion |
Quaternion.star(Quaternion dst,
Quaternion src)
The conjugate of the inverse, or do I mean the inverse of the conjugate???
|
static Quaternion |
Quaternion.subtract(Quaternion dst,
Quaternion a,
Quaternion b) |
static Quaternion |
Quaternion.times(Quaternion dst,
double s,
Quaternion src) |
static Quaternion |
Quaternion.times(Quaternion a,
Quaternion b) |
Modifier and Type | Method and Description |
---|---|
static Quaternion |
Quaternion.add(Quaternion dst,
Quaternion a,
Quaternion b) |
static double[] |
Quaternion.asDouble(double[] dst,
Quaternion q) |
static double[] |
P3.composeMatrixFromFactors(double[] m,
double[] transV,
Quaternion rotQ,
Quaternion stretchRotQ,
double[] stretchV,
boolean isFlipped,
int metric) |
static Quaternion |
Quaternion.conjugate(Quaternion dst,
Quaternion src) |
static Quaternion |
Quaternion.copy(Quaternion dst,
Quaternion src) |
static boolean |
Quaternion.equals(Quaternion a,
Quaternion b,
double tol)
Check for numerical equality.
|
static boolean |
Quaternion.equalsRotation(Quaternion a,
Quaternion b,
double tol)
Check if the rotations represented by the two quaternions are equal
|
static Quaternion |
Quaternion.exp(Quaternion dst,
double t,
Quaternion src) |
static double[] |
P3.factorMatrix(double[] m,
double[] transV,
Quaternion rotQ,
Quaternion stretchRotQ,
double[] stretchV,
boolean[] isFlipped,
int metric)
see Graphics Gems IV, p.
|
static double[] |
Quaternion.IJK(double[] dst,
Quaternion q)
return imaginary part as a double array.
|
static double |
Quaternion.innerProduct(Quaternion a,
Quaternion b) |
static Quaternion |
Quaternion.invert(Quaternion dst,
Quaternion src) |
static double |
Quaternion.length(Quaternion q) |
static double |
Quaternion.lengthSquared(Quaternion q) |
static Quaternion |
Quaternion.linearInterpolation(Quaternion dst,
Quaternion rot1,
Quaternion rot2,
double s) |
static Quaternion |
Quaternion.makeRotationQuaternionAngle(Quaternion q,
double angle,
double[] axis) |
static Quaternion |
Quaternion.makeRotationQuaternionCos(Quaternion q,
double cos,
double[] axis) |
static Quaternion |
Quaternion.negate(Quaternion dst,
Quaternion src) |
static Quaternion |
Quaternion.normalize(Quaternion dst,
Quaternion src) |
static double[] |
Quaternion.quaternionToRotationMatrix(double[] rot,
Quaternion qt) |
static double[] |
Quaternion.quaternionToRotationMatrixOld(double[] rot,
Quaternion qt)
Convert the quaternion qt into a 3x3 rotation matrix.
|
static Quaternion |
Quaternion.rotationMatrixToQuaternion(Quaternion q,
double[] mat)
Convert the 3x3 rotation matrix mat into a quaternion.
|
void |
FactoredMatrix.setRotation(Quaternion aQ)
Set the rotation for this transformation using the unit quaternion aQ
.
|
static Quaternion |
Quaternion.star(Quaternion dst,
Quaternion src)
The conjugate of the inverse, or do I mean the inverse of the conjugate???
|
static Quaternion |
Quaternion.subtract(Quaternion dst,
Quaternion a,
Quaternion b) |
static Quaternion |
Quaternion.times(Quaternion dst,
double s,
Quaternion src) |
static Quaternion |
Quaternion.times(Quaternion a,
Quaternion b) |
Constructor and Description |
---|
Quaternion(Quaternion nq)
A copy constructor.
|