| Package | Description |
|---|---|
| com.io7m.jtensors |
Core vector and matrix types.
|
| Modifier and Type | Field and Description |
|---|---|
static VectorI3F |
VectorI3F.ZERO
The zero vector.
|
| Modifier and Type | Method and Description |
|---|---|
static VectorI3F |
VectorI3F.absolute(VectorReadable3FType v)
Calculate the absolute value of the vector
v. |
static VectorI3F |
VectorI3F.add(VectorReadable3FType v0,
VectorReadable3FType v1)
Calculate the element-wise sum of the vectors
v0 and v1. |
static VectorI3F |
VectorI3F.addScaled(VectorReadable3FType v0,
VectorReadable3FType v1,
float r)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r. |
static VectorI3F |
VectorI3F.clamp(VectorReadable3FType v,
float minimum,
float maximum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static VectorI3F |
VectorI3F.clampByVector(VectorReadable3FType v,
VectorReadable3FType minimum,
VectorReadable3FType maximum)
Clamp the elements of the vector
v to the inclusive range given by
the corresponding elements in minimum and maximum. |
static VectorI3F |
VectorI3F.clampMaximum(VectorReadable3FType v,
float maximum)
Clamp the elements of the vector
v to the range {@code [-Infinity
.. |
static VectorI3F |
VectorI3F.clampMaximumByVector(VectorReadable3FType v,
VectorReadable3FType maximum)
Clamp the elements of the vector
v to the inclusive range given by
the corresponding elements in maximum. |
static VectorI3F |
VectorI3F.clampMinimum(VectorReadable3FType v,
float minimum)
Clamp the elements of the vector
v to the range {@code [minimum .. |
static VectorI3F |
VectorI3F.clampMinimumByVector(VectorReadable3FType v,
VectorReadable3FType minimum)
Clamp the elements of the vector
v to the inclusive range given by
the corresponding elements in minimum. |
static VectorI3F |
VectorI3F.crossProduct(VectorReadable3FType v0,
VectorReadable3FType v1)
Calculate the cross product of the vectors
v0 and v1. |
VectorI3F |
OrthonormalizedI3F.getV0() |
VectorI3F |
OrthonormalizedI3F.getV1() |
VectorI3F |
OrthonormalizedI3F.getV2() |
static VectorI3F |
VectorI3F.interpolateLinear(VectorReadable3FType v0,
VectorReadable3FType v1,
float alpha)
Linearly interpolate between
v0 and v1 by the amount alpha. |
static VectorI3F |
VectorI3F.normalize(VectorReadable3FType v)
Normalize the vector
v, preserving its direction but reducing it to
unit length. |
static VectorI3F |
VectorI3F.projection(VectorReadable3FType p,
VectorReadable3FType q)
Calculate the projection of the vector
p onto the vector q. |
static VectorI3F |
VectorI3F.scale(VectorReadable3FType v,
float r)
Scale the vector
v by the scalar r. |
static VectorI3F |
VectorI3F.subtract(VectorReadable3FType v0,
VectorReadable3FType v1)
Subtract the vector
v1 from the vector v0. |
| Modifier and Type | Method and Description |
|---|---|
static com.io7m.jfunctional.Pair<VectorI3F,VectorI3F> |
VectorI3F.orthoNormalize(VectorReadable3FType v0,
VectorReadable3FType v1)
Orthonormalize and return the vectors
v0 and v1 . |
static com.io7m.jfunctional.Pair<VectorI3F,VectorI3F> |
VectorI3F.orthoNormalize(VectorReadable3FType v0,
VectorReadable3FType v1)
Orthonormalize and return the vectors
v0 and v1 . |
Copyright © 2016 <code@io7m.com> http://io7m.com