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