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