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