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