| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Method and Description |
|---|---|
static VectorM4D |
VectorM4D.absolute(VectorReadable4DType v,
VectorM4D out)
Calculate the absolute values of the elements in vector
v,
saving the result to out. |
static VectorM4D |
VectorM4D.absoluteInPlace(VectorM4D v)
Calculate the absolute values of the elements in vector
v,
modifying the vector in-place. |
static VectorM4D |
VectorM4D.add(VectorReadable4DType v0,
VectorReadable4DType v1,
VectorM4D out)
Calculate the element-wise sum of the vectors
v0 and
v1, saving the result to out. |
static VectorM4D |
VectorM4D.addInPlace(VectorM4D v0,
VectorReadable4DType v1)
Calculate the element-wise sum of the vectors
v0 and
v1, saving the result to v0. |
static VectorM4D |
VectorM4D.addScaled(VectorReadable4DType v0,
VectorReadable4DType v1,
double r,
VectorM4D out)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r, saving the
result to out. |
static VectorM4D |
VectorM4D.addScaledInPlace(VectorM4D v0,
VectorReadable4DType v1,
double r)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r, saving the
result to v0. |
static VectorM4D |
VectorM4D.clamp(VectorReadable4DType v,
double minimum,
double maximum,
VectorM4D out)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM4D |
VectorM4D.clampByVector(VectorReadable4DType v,
VectorReadable4DType minimum,
VectorReadable4DType maximum,
VectorM4D out)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum and
maximum, saving the result to out. |
static VectorM4D |
VectorM4D.clampByVectorInPlace(VectorM4D v,
VectorReadable4DType minimum,
VectorReadable4DType maximum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum and
maximum, saving the result to v. |
static VectorM4D |
VectorM4D.clampInPlace(VectorM4D v,
double minimum,
double maximum)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM4D |
VectorM4D.clampMaximum(VectorReadable4DType v,
double maximum,
VectorM4D out)
Clamp the elements of the vector
v to the range
[-Infinity .. |
static VectorM4D |
VectorM4D.clampMaximumByVector(VectorReadable4DType v,
VectorReadable4DType maximum,
VectorM4D out)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in maximum, saving the
result to out. |
static VectorM4D |
VectorM4D.clampMaximumByVectorInPlace(VectorM4D v,
VectorReadable4DType maximum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in maximum, saving the
result to v. |
static VectorM4D |
VectorM4D.clampMaximumInPlace(VectorM4D v,
double maximum)
Clamp the elements of the vector
v to the range
[-Infinity .. |
static VectorM4D |
VectorM4D.clampMinimum(VectorReadable4DType v,
double minimum,
VectorM4D out)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM4D |
VectorM4D.clampMinimumByVector(VectorReadable4DType v,
VectorReadable4DType minimum,
VectorM4D out)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum, saving the
result to out. |
static VectorM4D |
VectorM4D.clampMinimumByVectorInPlace(VectorM4D v,
VectorReadable4DType minimum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum, saving the
result to v. |
static VectorM4D |
VectorM4D.clampMinimumInPlace(VectorM4D v,
double minimum)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM4D |
VectorM4D.interpolateLinear(VectorReadable4DType v0,
VectorReadable4DType v1,
double alpha,
VectorM4D r)
Linearly interpolate between
v0 and v1 by the
amount alpha, saving the result to r. |
static VectorM4D |
MatrixM4x4D.multiplyVector4D(MatrixReadable4x4DType m,
VectorReadable4DType v,
VectorM4D out)
Multiply the matrix
m with the vector v,
writing the resulting vector to out. |
static VectorM4D |
MatrixM4x4D.multiplyVector4DWithContext(MatrixM4x4D.Context context,
MatrixReadable4x4DType m,
VectorReadable4DType v,
VectorM4D out)
Multiply the matrix
m with the vector v,
writing the resulting vector to out. |
static VectorM4D |
VectorM4D.normalize(VectorReadable4DType v,
VectorM4D out)
Returns a vector with the same orientation as
v but with
magnitude equal to 1.0 in out. |
static VectorM4D |
VectorM4D.normalizeInPlace(VectorM4D v)
Returns a vector with the same orientation as
v but with
magnitude equal to 1.0 in v. |
static VectorM4D |
VectorM4D.projection(VectorReadable4DType p,
VectorReadable4DType q,
VectorM4D r)
Calculate the projection of the vector
p onto the vector
q, saving the result in r. |
static VectorM4D |
MatrixM4x4D.row(MatrixReadable4x4DType m,
int row,
VectorM4D out) |
static VectorM4D |
VectorM4D.scale(VectorReadable4DType v,
double r,
VectorM4D out)
Scale the vector
v by the scalar r, saving the
result to out. |
static VectorM4D |
VectorM4D.scaleInPlace(VectorM4D v,
double r)
Scale the vector
v by the scalar r, saving the
result to v. |
static VectorM4D |
VectorM4D.subtract(VectorReadable4DType v0,
VectorReadable4DType v1,
VectorM4D out)
Subtract the vector
v1 from the vector v0,
saving the result to out. |
static VectorM4D |
VectorM4D.subtractInPlace(VectorM4D v0,
VectorReadable4DType v1)
Subtract the vector
v1 from the vector v0,
saving the result to v0. |
| Modifier and Type | Method and Description |
|---|---|
static com.io7m.jfunctional.Pair<VectorM4D,VectorM4D> |
VectorM4D.orthoNormalize(VectorReadable4DType v0,
VectorReadable4DType v1)
Orthonormalize and return the vectors
v0 and v1
. |
static com.io7m.jfunctional.Pair<VectorM4D,VectorM4D> |
VectorM4D.orthoNormalize(VectorReadable4DType v0,
VectorReadable4DType v1)
Orthonormalize and return the vectors
v0 and v1
. |
| Modifier and Type | Method and Description |
|---|---|
static VectorM4D |
VectorM4D.absolute(VectorReadable4DType v,
VectorM4D out)
Calculate the absolute values of the elements in vector
v,
saving the result to out. |
static VectorM4D |
VectorM4D.absoluteInPlace(VectorM4D v)
Calculate the absolute values of the elements in vector
v,
modifying the vector in-place. |
static VectorM4D |
VectorM4D.add(VectorReadable4DType v0,
VectorReadable4DType v1,
VectorM4D out)
Calculate the element-wise sum of the vectors
v0 and
v1, saving the result to out. |
static VectorM4D |
VectorM4D.addInPlace(VectorM4D v0,
VectorReadable4DType v1)
Calculate the element-wise sum of the vectors
v0 and
v1, saving the result to v0. |
static VectorM4D |
VectorM4D.addScaled(VectorReadable4DType v0,
VectorReadable4DType v1,
double r,
VectorM4D out)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r, saving the
result to out. |
static VectorM4D |
VectorM4D.addScaledInPlace(VectorM4D v0,
VectorReadable4DType v1,
double r)
Calculate the element-wise sum of the vectors
v0 and the
element-wise product of v1 and r, saving the
result to v0. |
static VectorM4D |
VectorM4D.clamp(VectorReadable4DType v,
double minimum,
double maximum,
VectorM4D out)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM4D |
VectorM4D.clampByVector(VectorReadable4DType v,
VectorReadable4DType minimum,
VectorReadable4DType maximum,
VectorM4D out)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum and
maximum, saving the result to out. |
static VectorM4D |
VectorM4D.clampByVectorInPlace(VectorM4D v,
VectorReadable4DType minimum,
VectorReadable4DType maximum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum and
maximum, saving the result to v. |
static VectorM4D |
VectorM4D.clampInPlace(VectorM4D v,
double minimum,
double maximum)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM4D |
VectorM4D.clampMaximum(VectorReadable4DType v,
double maximum,
VectorM4D out)
Clamp the elements of the vector
v to the range
[-Infinity .. |
static VectorM4D |
VectorM4D.clampMaximumByVector(VectorReadable4DType v,
VectorReadable4DType maximum,
VectorM4D out)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in maximum, saving the
result to out. |
static VectorM4D |
VectorM4D.clampMaximumByVectorInPlace(VectorM4D v,
VectorReadable4DType maximum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in maximum, saving the
result to v. |
static VectorM4D |
VectorM4D.clampMaximumInPlace(VectorM4D v,
double maximum)
Clamp the elements of the vector
v to the range
[-Infinity .. |
static VectorM4D |
VectorM4D.clampMinimum(VectorReadable4DType v,
double minimum,
VectorM4D out)
Clamp the elements of the vector
v to the range
[minimum .. |
static VectorM4D |
VectorM4D.clampMinimumByVector(VectorReadable4DType v,
VectorReadable4DType minimum,
VectorM4D out)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum, saving the
result to out. |
static VectorM4D |
VectorM4D.clampMinimumByVectorInPlace(VectorM4D v,
VectorReadable4DType minimum)
Clamp the elements of the vector
v to the inclusive range
given by the corresponding elements in minimum, saving the
result to v. |
static VectorM4D |
VectorM4D.clampMinimumInPlace(VectorM4D v,
double minimum)
Clamp the elements of the vector
v to the range
[minimum .. |
void |
MatrixReadable4x4DType.getRow4D(int row,
VectorM4D out)
Retrieve row
row, saving the result to out. |
void |
MatrixM4x4D.getRow4D(int row,
VectorM4D out) |
static VectorM4D |
VectorM4D.interpolateLinear(VectorReadable4DType v0,
VectorReadable4DType v1,
double alpha,
VectorM4D r)
Linearly interpolate between
v0 and v1 by the
amount alpha, saving the result to r. |
static VectorM4D |
MatrixM4x4D.multiplyVector4D(MatrixReadable4x4DType m,
VectorReadable4DType v,
VectorM4D out)
Multiply the matrix
m with the vector v,
writing the resulting vector to out. |
static VectorM4D |
MatrixM4x4D.multiplyVector4DWithContext(MatrixM4x4D.Context context,
MatrixReadable4x4DType m,
VectorReadable4DType v,
VectorM4D out)
Multiply the matrix
m with the vector v,
writing the resulting vector to out. |
static VectorM4D |
VectorM4D.normalize(VectorReadable4DType v,
VectorM4D out)
Returns a vector with the same orientation as
v but with
magnitude equal to 1.0 in out. |
static VectorM4D |
VectorM4D.normalizeInPlace(VectorM4D v)
Returns a vector with the same orientation as
v but with
magnitude equal to 1.0 in v. |
static void |
VectorM4D.orthoNormalizeInPlace(VectorM4D v0,
VectorM4D v1)
Orthonormalize and the vectors
v0 and v1. |
static VectorM4D |
VectorM4D.projection(VectorReadable4DType p,
VectorReadable4DType q,
VectorM4D r)
Calculate the projection of the vector
p onto the vector
q, saving the result in r. |
static VectorM4D |
MatrixM4x4D.row(MatrixReadable4x4DType m,
int row,
VectorM4D out) |
static VectorM4D |
VectorM4D.scale(VectorReadable4DType v,
double r,
VectorM4D out)
Scale the vector
v by the scalar r, saving the
result to out. |
static VectorM4D |
VectorM4D.scaleInPlace(VectorM4D v,
double r)
Scale the vector
v by the scalar r, saving the
result to v. |
static VectorM4D |
VectorM4D.subtract(VectorReadable4DType v0,
VectorReadable4DType v1,
VectorM4D out)
Subtract the vector
v1 from the vector v0,
saving the result to out. |
static VectorM4D |
VectorM4D.subtractInPlace(VectorM4D v0,
VectorReadable4DType v1)
Subtract the vector
v1 from the vector v0,
saving the result to v0. |
Copyright © 2015 <code@io7m.com> http://io7m.com