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