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