| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Field and Description |
|---|---|
static QuaternionI4F |
QuaternionI4F.IDENTITY
The "identity" quaternion, [0.0 0.0 0.0 1.0]
|
| Modifier and Type | Method and Description |
|---|---|
static QuaternionI4F |
QuaternionI4F.add(QuaternionReadable4FType q0,
QuaternionReadable4FType q1)
Calculate the element-wise sum of the quaternions
q0 and
q1. |
static QuaternionI4F |
QuaternionI4F.conjugate(QuaternionReadable4FType q)
Calculate the conjugate of the input quaternion
q. |
static QuaternionI4F |
QuaternionI4F.interpolateLinear(QuaternionReadable4FType q0,
QuaternionReadable4FType q1,
float alpha)
Linearly interpolate between
q0 and q1 by the
amount alpha, such that:
interpolateLinear(q0, q1, 0.0) = q0
interpolateLinear(q0, q1, 1.0) = q1
|
static QuaternionI4F |
QuaternionI4F.lookAtWithContext(QuaternionI4F.Context context,
VectorReadable3FType origin,
VectorReadable3FType target,
VectorReadable3FType up)
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. |
static QuaternionI4F |
QuaternionI4F.makeFromAxisAngle(VectorReadable3FType axis,
double angle)
Produce a quaternion that represents a rotation of
angle
degrees around the axis specified by axis. |
static QuaternionI4F |
QuaternionI4F.makeFromRotationMatrix3x3(MatrixReadable3x3FType m)
Produce a quaternion equivalent to the rotation matrix
m. |
static QuaternionI4F |
QuaternionI4F.makeFromRotationMatrix4x4(MatrixReadable4x4FType m)
Produce a quaternion equivalent to the rotation matrix
m,
writing the result to out. |
static QuaternionI4F |
QuaternionI4F.multiply(QuaternionReadable4FType q0,
QuaternionReadable4FType q1)
Multiply the quaternion
q0 by the quaternion q1
. |
static QuaternionI4F |
QuaternionI4F.negate(QuaternionReadable4FType q)
Negate the elements of
q. |
static QuaternionI4F |
QuaternionI4F.normalize(QuaternionReadable4FType q)
Normalize the quaternion
q, preserqing its direction but
reducing it to unit length. |
static QuaternionI4F |
QuaternionI4F.scale(QuaternionReadable4FType q,
float r)
Scale the quaternion
q by the scalar r. |
static QuaternionI4F |
QuaternionI4F.subtract(QuaternionReadable4FType q0,
QuaternionReadable4FType q1)
Subtract the quaternion
q0 from the quaternion
q1. |
Copyright © 2014 <code@io7m.com> http://io7m.com