| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Method and Description |
|---|---|
static QuaternionM4D |
QuaternionM4D.add(QuaternionReadable4DType q0,
QuaternionReadable4DType q1,
QuaternionM4D out)
Calculate the element-wise sum of the quaternions
q0 and
q1, saving the result to qr. |
static QuaternionM4D |
QuaternionM4D.addInPlace(QuaternionM4D q0,
QuaternionReadable4DType q1)
Calculate the element-wise sum of the quaternions
q0 and
q1, saving the result to q0. |
static QuaternionM4D |
QuaternionM4D.conjugate(QuaternionReadable4DType q,
QuaternionM4D out)
Calculate the conjugate of the input quaternion
q, saving
the result to out. |
static QuaternionM4D |
QuaternionM4D.conjugateInPlace(QuaternionM4D q)
Calculate the conjugate of the input quaternion
q, modifying
q in place. |
static QuaternionM4D |
QuaternionM4D.copy(QuaternionReadable4DType q,
QuaternionM4D out)
Copy the contents of the quaternion
q to out. |
static QuaternionM4D |
QuaternionM4D.interpolateLinear(QuaternionReadable4DType q0,
QuaternionReadable4DType q1,
double alpha,
QuaternionM4D 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 QuaternionM4D |
QuaternionM4D.lookAtWithContext(QuaternionM4D.Context context,
VectorReadable3DType origin,
VectorReadable3DType target,
VectorReadable3DType up,
QuaternionM4D 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 QuaternionM4D |
QuaternionM4D.makeFromAxisAngle(VectorReadable3DType axis,
double angle,
QuaternionM4D out)
Produce a quaternion that represents a rotation of
angle
degrees around the axis specified by axis, saving the result
to out. |
static QuaternionM4D |
QuaternionM4D.makeFromRotationMatrix3x3(MatrixReadable3x3DType m,
QuaternionM4D out)
Produce a quaternion equivalent to the rotation matrix
m,
writing the result to out. |
static QuaternionM4D |
QuaternionM4D.makeFromRotationMatrix4x4(MatrixReadable4x4DType m,
QuaternionM4D out)
Produce a quaternion equivalent to the rotation matrix
m,
writing the result to out. |
static QuaternionM4D |
QuaternionM4D.multiply(QuaternionReadable4DType q0,
QuaternionReadable4DType q1,
QuaternionM4D qr)
Multiply the quaternion
q0 by the quaternion q1
, saving the result to qr. |
static QuaternionM4D |
QuaternionM4D.multiplyInPlace(QuaternionM4D q0,
QuaternionReadable4DType q1)
Multiply the quaternion
q0 by the quaternion q1
, saving the result to q0. |
static QuaternionM4D |
QuaternionM4D.negate(QuaternionReadable4DType qa,
QuaternionM4D out)
Negate the elements of
qa, writing the resulting quaternion
to out. |
static QuaternionM4D |
QuaternionM4D.negateInPlace(QuaternionM4D q)
Negate the elements of
q, modifying the quaternion in-place. |
static QuaternionM4D |
QuaternionM4D.normalize(QuaternionReadable4DType q,
QuaternionM4D out)
Returns a quaternion with the same orientation as
q but with
magnitude equal to 1.0 in out. |
static QuaternionM4D |
QuaternionM4D.normalizeInPlace(QuaternionM4D q)
Returns a quaternion with the same orientation as
q but with
magnitude equal to 1.0 in q. |
static QuaternionM4D |
QuaternionM4D.scale(QuaternionReadable4DType q,
double r,
QuaternionM4D out)
Scale the quaternion
q by the scalar r, saving
the result to out. |
static QuaternionM4D |
QuaternionM4D.scaleInPlace(QuaternionM4D q,
double r)
Scale the quaternion
q by the scalar r, saving
the result to q. |
static QuaternionM4D |
QuaternionM4D.subtract(QuaternionReadable4DType q0,
QuaternionReadable4DType q1,
QuaternionM4D out)
Subtract the quaternion
q0 from the quaternion
q1, saving the result to out. |
static QuaternionM4D |
QuaternionM4D.subtractInPlace(QuaternionM4D q0,
QuaternionReadable4DType q1)
Subtract the quaternion
q0 from the quaternion
q1, saving the result to q0. |
| Modifier and Type | Method and Description |
|---|---|
static QuaternionM4D |
QuaternionM4D.add(QuaternionReadable4DType q0,
QuaternionReadable4DType q1,
QuaternionM4D out)
Calculate the element-wise sum of the quaternions
q0 and
q1, saving the result to qr. |
static QuaternionM4D |
QuaternionM4D.addInPlace(QuaternionM4D q0,
QuaternionReadable4DType q1)
Calculate the element-wise sum of the quaternions
q0 and
q1, saving the result to q0. |
static QuaternionM4D |
QuaternionM4D.conjugate(QuaternionReadable4DType q,
QuaternionM4D out)
Calculate the conjugate of the input quaternion
q, saving
the result to out. |
static QuaternionM4D |
QuaternionM4D.conjugateInPlace(QuaternionM4D q)
Calculate the conjugate of the input quaternion
q, modifying
q in place. |
static QuaternionM4D |
QuaternionM4D.copy(QuaternionReadable4DType q,
QuaternionM4D out)
Copy the contents of the quaternion
q to out. |
static QuaternionM4D |
QuaternionM4D.interpolateLinear(QuaternionReadable4DType q0,
QuaternionReadable4DType q1,
double alpha,
QuaternionM4D 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 QuaternionM4D |
QuaternionM4D.lookAtWithContext(QuaternionM4D.Context context,
VectorReadable3DType origin,
VectorReadable3DType target,
VectorReadable3DType up,
QuaternionM4D 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 QuaternionM4D |
QuaternionM4D.makeFromAxisAngle(VectorReadable3DType axis,
double angle,
QuaternionM4D out)
Produce a quaternion that represents a rotation of
angle
degrees around the axis specified by axis, saving the result
to out. |
static QuaternionM4D |
QuaternionM4D.makeFromRotationMatrix3x3(MatrixReadable3x3DType m,
QuaternionM4D out)
Produce a quaternion equivalent to the rotation matrix
m,
writing the result to out. |
static QuaternionM4D |
QuaternionM4D.makeFromRotationMatrix4x4(MatrixReadable4x4DType m,
QuaternionM4D out)
Produce a quaternion equivalent to the rotation matrix
m,
writing the result to out. |
static QuaternionM4D |
QuaternionM4D.multiply(QuaternionReadable4DType q0,
QuaternionReadable4DType q1,
QuaternionM4D qr)
Multiply the quaternion
q0 by the quaternion q1
, saving the result to qr. |
static QuaternionM4D |
QuaternionM4D.multiplyInPlace(QuaternionM4D q0,
QuaternionReadable4DType q1)
Multiply the quaternion
q0 by the quaternion q1
, saving the result to q0. |
static QuaternionM4D |
QuaternionM4D.negate(QuaternionReadable4DType qa,
QuaternionM4D out)
Negate the elements of
qa, writing the resulting quaternion
to out. |
static QuaternionM4D |
QuaternionM4D.negateInPlace(QuaternionM4D q)
Negate the elements of
q, modifying the quaternion in-place. |
static QuaternionM4D |
QuaternionM4D.normalize(QuaternionReadable4DType q,
QuaternionM4D out)
Returns a quaternion with the same orientation as
q but with
magnitude equal to 1.0 in out. |
static QuaternionM4D |
QuaternionM4D.normalizeInPlace(QuaternionM4D q)
Returns a quaternion with the same orientation as
q but with
magnitude equal to 1.0 in q. |
static QuaternionM4D |
QuaternionM4D.scale(QuaternionReadable4DType q,
double r,
QuaternionM4D out)
Scale the quaternion
q by the scalar r, saving
the result to out. |
static QuaternionM4D |
QuaternionM4D.scaleInPlace(QuaternionM4D q,
double r)
Scale the quaternion
q by the scalar r, saving
the result to q. |
static QuaternionM4D |
QuaternionM4D.subtract(QuaternionReadable4DType q0,
QuaternionReadable4DType q1,
QuaternionM4D out)
Subtract the quaternion
q0 from the quaternion
q1, saving the result to out. |
static QuaternionM4D |
QuaternionM4D.subtractInPlace(QuaternionM4D q0,
QuaternionReadable4DType q1)
Subtract the quaternion
q0 from the quaternion
q1, saving the result to q0. |
Copyright © 2014 <code@io7m.com> http://io7m.com