| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Method and Description |
|---|---|
static QuaternionM4F |
QuaternionM4F.add(QuaternionReadable4FType q0,
QuaternionReadable4FType q1,
QuaternionM4F out)
Calculate the element-wise sum of the quaternions
q0 and
q1, saving the result to qr. |
static QuaternionM4F |
QuaternionM4F.addInPlace(QuaternionM4F q0,
QuaternionReadable4FType q1)
Calculate the element-wise sum of the quaternions
q0 and
q1, saving the result to q0. |
static QuaternionM4F |
QuaternionM4F.conjugate(QuaternionReadable4FType q,
QuaternionM4F out)
Calculate the conjugate of the input quaternion
q, saving
the result to out. |
static QuaternionM4F |
QuaternionM4F.conjugateInPlace(QuaternionM4F q)
Calculate the conjugate of the input quaternion
q, modifying
q in place. |
static QuaternionM4F |
QuaternionM4F.copy(QuaternionReadable4FType q,
QuaternionM4F out)
Copy the contents of the quaternion
q to out. |
static QuaternionM4F |
QuaternionM4F.interpolateLinear(QuaternionReadable4FType q0,
QuaternionReadable4FType q1,
double alpha,
QuaternionM4F r)
Linearly interpolate between
q0 and q1 by the
amount alpha, such that:
interpolateLinear(q0, q1, 0.0, r) -> r = q0
interpolateLinear(q0, q1, 1.0, r) -> r = q1
|
static QuaternionM4F |
QuaternionM4F.lookAtWithContext(QuaternionM4F.Context context,
VectorReadable3FType origin,
VectorReadable3FType target,
VectorReadable3FType up,
QuaternionM4F q)
Produce a quaternion that represents a rotation that "looks at" the point
at
target assuming the viewer is at origin,
using up as the "up" vector, saving the result to
q. |
static QuaternionM4F |
QuaternionM4F.makeFromAxisAngle(VectorReadable3FType axis,
double angle,
QuaternionM4F out)
Produce a quaternion that represents a rotation of
angle
degrees around the axis specified by axis, saving the result
to out. |
static QuaternionM4F |
QuaternionM4F.makeFromRotationMatrix3x3(MatrixReadable3x3FType m,
QuaternionM4F out)
Produce a quaternion equivalent to the rotation matrix
m,
writing the result to out. |
static QuaternionM4F |
QuaternionM4F.makeFromRotationMatrix4x4(MatrixReadable4x4FType m,
QuaternionM4F out)
Produce a quaternion equivalent to the rotation matrix
m,
writing the result to out. |
static QuaternionM4F |
QuaternionM4F.multiply(QuaternionReadable4FType q0,
QuaternionReadable4FType q1,
QuaternionM4F qr)
Multiply the quaternion
q0 by the quaternion q1
, saving the result to qr. |
static QuaternionM4F |
QuaternionM4F.multiplyInPlace(QuaternionM4F q0,
QuaternionReadable4FType q1)
Multiply the quaternion
q0 by the quaternion q1
, saving the result to q0. |
static QuaternionM4F |
QuaternionM4F.negate(QuaternionReadable4FType qa,
QuaternionM4F out)
Negate the elements of
qa, writing the resulting quaternion
to out. |
static QuaternionM4F |
QuaternionM4F.negateInPlace(QuaternionM4F q)
Negate the elements of
q, modifying the quaternion in-place. |
static QuaternionM4F |
QuaternionM4F.normalize(QuaternionReadable4FType q,
QuaternionM4F out)
Returns a quaternion with the same orientation as
q but with
magnitude equal to 1.0 in out. |
static QuaternionM4F |
QuaternionM4F.normalizeInPlace(QuaternionM4F q)
Returns a quaternion with the same orientation as
q but with
magnitude equal to 1.0 in q. |
static QuaternionM4F |
QuaternionM4F.scale(QuaternionReadable4FType q,
double r,
QuaternionM4F out)
Scale the quaternion
q by the scalar r, saving
the result to out. |
static QuaternionM4F |
QuaternionM4F.scaleInPlace(QuaternionM4F q,
double r)
Scale the quaternion
q by the scalar r, saving
the result to q. |
static QuaternionM4F |
QuaternionM4F.subtract(QuaternionReadable4FType q0,
QuaternionReadable4FType q1,
QuaternionM4F out)
Subtract the quaternion
q0 from the quaternion
q1, saving the result to out. |
static QuaternionM4F |
QuaternionM4F.subtractInPlace(QuaternionM4F q0,
QuaternionReadable4FType q1)
Subtract the quaternion
q0 from the quaternion
q1, saving the result to q0. |
| Modifier and Type | Method and Description |
|---|---|
static QuaternionM4F |
QuaternionM4F.add(QuaternionReadable4FType q0,
QuaternionReadable4FType q1,
QuaternionM4F out)
Calculate the element-wise sum of the quaternions
q0 and
q1, saving the result to qr. |
static QuaternionM4F |
QuaternionM4F.addInPlace(QuaternionM4F q0,
QuaternionReadable4FType q1)
Calculate the element-wise sum of the quaternions
q0 and
q1, saving the result to q0. |
static QuaternionM4F |
QuaternionM4F.conjugate(QuaternionReadable4FType q,
QuaternionM4F out)
Calculate the conjugate of the input quaternion
q, saving
the result to out. |
static QuaternionM4F |
QuaternionM4F.conjugateInPlace(QuaternionM4F q)
Calculate the conjugate of the input quaternion
q, modifying
q in place. |
static QuaternionM4F |
QuaternionM4F.copy(QuaternionReadable4FType q,
QuaternionM4F out)
Copy the contents of the quaternion
q to out. |
static QuaternionM4F |
QuaternionM4F.interpolateLinear(QuaternionReadable4FType q0,
QuaternionReadable4FType q1,
double alpha,
QuaternionM4F r)
Linearly interpolate between
q0 and q1 by the
amount alpha, such that:
interpolateLinear(q0, q1, 0.0, r) -> r = q0
interpolateLinear(q0, q1, 1.0, r) -> r = q1
|
static QuaternionM4F |
QuaternionM4F.lookAtWithContext(QuaternionM4F.Context context,
VectorReadable3FType origin,
VectorReadable3FType target,
VectorReadable3FType up,
QuaternionM4F q)
Produce a quaternion that represents a rotation that "looks at" the point
at
target assuming the viewer is at origin,
using up as the "up" vector, saving the result to
q. |
static QuaternionM4F |
QuaternionM4F.makeFromAxisAngle(VectorReadable3FType axis,
double angle,
QuaternionM4F out)
Produce a quaternion that represents a rotation of
angle
degrees around the axis specified by axis, saving the result
to out. |
static QuaternionM4F |
QuaternionM4F.makeFromRotationMatrix3x3(MatrixReadable3x3FType m,
QuaternionM4F out)
Produce a quaternion equivalent to the rotation matrix
m,
writing the result to out. |
static QuaternionM4F |
QuaternionM4F.makeFromRotationMatrix4x4(MatrixReadable4x4FType m,
QuaternionM4F out)
Produce a quaternion equivalent to the rotation matrix
m,
writing the result to out. |
static MatrixM3x3F |
QuaternionM4F.makeRotationMatrix3x3(QuaternionM4F q,
MatrixM3x3F m)
Produce a rotation matrix from the quaternion
q, saving the
result to m. |
static QuaternionM4F |
QuaternionM4F.multiply(QuaternionReadable4FType q0,
QuaternionReadable4FType q1,
QuaternionM4F qr)
Multiply the quaternion
q0 by the quaternion q1
, saving the result to qr. |
static QuaternionM4F |
QuaternionM4F.multiplyInPlace(QuaternionM4F q0,
QuaternionReadable4FType q1)
Multiply the quaternion
q0 by the quaternion q1
, saving the result to q0. |
static QuaternionM4F |
QuaternionM4F.negate(QuaternionReadable4FType qa,
QuaternionM4F out)
Negate the elements of
qa, writing the resulting quaternion
to out. |
static QuaternionM4F |
QuaternionM4F.negateInPlace(QuaternionM4F q)
Negate the elements of
q, modifying the quaternion in-place. |
static QuaternionM4F |
QuaternionM4F.normalize(QuaternionReadable4FType q,
QuaternionM4F out)
Returns a quaternion with the same orientation as
q but with
magnitude equal to 1.0 in out. |
static QuaternionM4F |
QuaternionM4F.normalizeInPlace(QuaternionM4F q)
Returns a quaternion with the same orientation as
q but with
magnitude equal to 1.0 in q. |
static QuaternionM4F |
QuaternionM4F.scale(QuaternionReadable4FType q,
double r,
QuaternionM4F out)
Scale the quaternion
q by the scalar r, saving
the result to out. |
static QuaternionM4F |
QuaternionM4F.scaleInPlace(QuaternionM4F q,
double r)
Scale the quaternion
q by the scalar r, saving
the result to q. |
static QuaternionM4F |
QuaternionM4F.subtract(QuaternionReadable4FType q0,
QuaternionReadable4FType q1,
QuaternionM4F out)
Subtract the quaternion
q0 from the quaternion
q1, saving the result to out. |
static QuaternionM4F |
QuaternionM4F.subtractInPlace(QuaternionM4F q0,
QuaternionReadable4FType q1)
Subtract the quaternion
q0 from the quaternion
q1, saving the result to q0. |
Copyright © 2014 <code@io7m.com> http://io7m.com