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