| Package | Description |
|---|---|
| com.io7m.jtensors |
Core vector and matrix types.
|
| Modifier and Type | Method and Description |
|---|---|
static <Q extends QuaternionWritable4DType> |
QuaternionM4D.interpolateLinear(QuaternionM4D.ContextQM4D c,
QuaternionReadable4DType q0,
QuaternionReadable4DType q1,
double alpha,
Q 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 <Q extends QuaternionWritable4DType> |
QuaternionM4D.lookAt(QuaternionM4D.ContextQM4D context,
VectorReadable3DType origin,
VectorReadable3DType target,
VectorReadable3DType up,
Q 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 <Q extends QuaternionWritable4DType> |
QuaternionM4D.makeFromAxisAngle(QuaternionM4D.ContextQM4D c,
VectorReadable3DType axis,
double angle,
Q out)
Produce a quaternion that represents a rotation of
angle degrees
around the axis specified by axis, saving the result to out. |
Copyright © 2015 <code@io7m.com> http://io7m.com