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