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