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