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