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