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