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