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