| Package | Description |
|---|---|
| com.io7m.jtensors |
Core vector and matrix types.
|
| Modifier and Type | Method and Description |
|---|---|
static <Q extends QuaternionWritable4FType> |
QuaternionM4F.interpolateLinear(QuaternionM4F.ContextQM4F c,
QuaternionReadable4FType q0,
QuaternionReadable4FType 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 QuaternionWritable4FType> |
QuaternionM4F.lookAt(QuaternionM4F.ContextQM4F context,
VectorReadable3FType origin,
VectorReadable3FType target,
VectorReadable3FType 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. |
Copyright © 2015 <code@io7m.com> http://io7m.com