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