Package | Description |
---|---|
jarp |
Provides the main Java ARP classes, that is, the classes defining
the avatar's skeleton, mesh, morphs, camera control, and JOGL
rendering canvas.
|
jautil.geometry |
Provides basic geometry classes, notably,
Quaternion and
Vector3f.
|
Modifier and Type | Field and Description |
---|---|
static Quaternion |
Character.QUAT_Z_MINUS_PI_BY_2
Quaternion [with components (w,x,y,z)] for a rotation
by -PI/2 round the Z-axis.
|
Modifier and Type | Method and Description |
---|---|
void |
Bone.getRotationInX(Quaternion q)
Sets the given quaternion to represent the
"rotation-round-X-axis" factor in this bone's rotation.
|
Modifier and Type | Field and Description |
---|---|
static Quaternion |
Quaternion.IDENTITY |
static Quaternion |
Quaternion.ZERO |
Modifier and Type | Method and Description |
---|---|
Quaternion |
Quaternion.add(Quaternion q)
Returns a new Quaternion representing this + q.
|
Quaternion |
Quaternion.exp()
Return a new Quaternion representing the exponential of this one.
|
Quaternion |
Quaternion.inverse()
Returns a new Quaternion containing the multiplicative inverse
of this one.
|
Quaternion |
Quaternion.inverseUnit()
Returns a new Quaternion containing the multiplicative inverse
of this one, assuming this one has unit length.
|
Quaternion |
Quaternion.log()
Return a new Quaternion representing the logarithm of this one.
|
Quaternion |
Quaternion.negate()
Returns a new Quaternion representing the negation of this one.
|
Quaternion |
Quaternion.postMultiply(Quaternion q)
Returns a new Quaternion representing this * q.
|
Quaternion |
TRTransform.quat()
Returns the rotation quaternion for this transform.
|
Quaternion |
Quaternion.scalarMultiply(float f)
Returns a new Quaternion representing this * f (scalar f).
|
Quaternion |
Quaternion.subtract(Quaternion q)
Returns a new Quaternion representing this - q.
|
Modifier and Type | Method and Description |
---|---|
Quaternion |
Quaternion.add(Quaternion q)
Returns a new Quaternion representing this + q.
|
void |
Quaternion.extractRotX(Quaternion qx)
Decomposes this quaternion into qx.qyz, where qx and qyz
represent rotations about, respectively, the x-axis and
some axis in the yz-plane, setting the given qx to be the
first of the two factors.
|
float |
Quaternion.innerProd(Quaternion q)
Returns the inner product of this Quaternion with the given one.
|
void |
Quaternion.postDivideUnitEq(Quaternion q) |
Quaternion |
Quaternion.postMultiply(Quaternion q)
Returns a new Quaternion representing this * q.
|
void |
Quaternion.postMultiplyEq(Quaternion q)
Post-multiply this Quaternion by the given one,
that is, this := this * q -- using the full quaternion product:
<a,U> * <b,V> = <ab - U.V, aV + bU + U x V>
where a, b are scalars, U, V are 3-vectors, .
|
void |
Quaternion.preMultiplyEq(Quaternion q)
Pre-multiply this Quaternion by the given one,
that is, this := q * this (full quaternion product, as defined
for postMultiplyEq() above).
|
void |
Quaternion.scale(Quaternion qwk,
float T)
Scales this quaternion by the specified fraction, using the
given quaternion as workspace -- achieved
using SLERP (spherical linear interpolation) with the identity
quaternion (representing the null rotation).
|
void |
Quaternion.set(Quaternion q)
Resets this Quaternion as a copy of the given one, q.
|
void |
TRTransform.set(Quaternion qrot)
Resets this transformation from the given rotation qrot and
a zero transformation.
|
void |
TRTransform.setComposition(TRTransform xpre,
Quaternion qrot)
Resets this transformation as the composition of the given
transform with the given rotation (and a zero translation).
|
void |
Quaternion.setInverseUnit(Quaternion q)
Sets this Quaternion to be the inverse of the given one, q.
|
static void |
TRUtil.setRotation(float[] rdest,
Quaternion qsrc)
Copies the given source quaternion rotation values to the given
destination array.
|
static void |
Quaternion.slerp(Quaternion qq,
Quaternion qa,
Quaternion qb,
Quaternion qwk,
float T)
Sets quaternion qq to be the SLERP (spherical linear
interpolation), with fraction T, between the two (unit)
quaternions qa, qb, using the given quaternion qwk as workspace.
|
Quaternion |
Quaternion.subtract(Quaternion q)
Returns a new Quaternion representing this - q.
|
Constructor and Description |
---|
Quaternion(Quaternion q)
Constructs a copy of the given quaternion.
|
TRTransform(Quaternion qrot)
Constructs a transformation from the given rotation quaternion
qrot (which is copied) and a zero translation.
|