| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Method and Description |
|---|---|
static MatrixM4x4F |
MatrixM4x4F.add(MatrixReadable4x4FType m0,
MatrixReadable4x4FType m1,
MatrixM4x4F out)
Elementwise add of matrices
m0 and m1. |
static MatrixM4x4F |
MatrixM4x4F.addInPlace(MatrixM4x4F m0,
MatrixReadable4x4FType m1)
Elementwise add of matrices
m0 and m1,
returning the result in m0. |
static MatrixM4x4F |
MatrixM4x4F.addRowScaled(MatrixReadable4x4FType m,
int row_a,
int row_b,
int row_c,
double r,
MatrixM4x4F out)
Add the values in row
row_b to the values in row
row_a scaled by r, saving the resulting row in
row row_c of the matrix out. |
static MatrixM4x4F |
MatrixM4x4F.addRowScaledInPlace(MatrixM4x4F m,
int row_a,
int row_b,
int row_c,
double r)
Add the values in row
row_b to the values in row
row_a scaled by r, saving the resulting row in
row row_c of the matrix m. |
static MatrixM4x4F |
MatrixM4x4F.addRowScaledWithContext(MatrixM4x4F.Context context,
MatrixReadable4x4FType m,
int row_a,
int row_b,
int row_c,
double r,
MatrixM4x4F out)
Add the values in row
row_b to the values in row
row_a scaled by r, saving the resulting row in
row row_c of the matrix out. |
static MatrixM4x4F |
MatrixM4x4F.copy(MatrixReadable4x4FType input,
MatrixM4x4F output)
Copy the contents of the matrix
input to the matrix
output, completely replacing all elements. |
static MatrixM4x4F |
MatrixM4x4F.exchangeRows(MatrixReadable4x4FType m,
int row_a,
int row_b,
MatrixM4x4F out)
Exchange the row
row_a and row row_b of the
matrix m, saving the exchanged rows to out. |
static MatrixM4x4F |
MatrixM4x4F.exchangeRowsInPlace(MatrixM4x4F m,
int row_a,
int row_b)
Exchange the row
row_a and row row_b of the
matrix m, saving the exchanged rows to m. |
static MatrixM4x4F |
MatrixM4x4F.exchangeRowsInPlaceWithContext(MatrixM4x4F.Context context,
MatrixM4x4F m,
int row_a,
int row_b)
Exchange the row
row_a and row row_b of the
matrix m, saving the exchanged rows to m. |
static MatrixM4x4F |
MatrixM4x4F.exchangeRowsWithContext(MatrixM4x4F.Context context,
MatrixReadable4x4FType m,
int row_a,
int row_b,
MatrixM4x4F out)
Exchange two rows
row_a and row row_b of the
matrix m, saving the exchanged rows to out . |
static MatrixM4x4F |
MatrixM4x4F.makeRotation(double angle,
VectorReadable3FType axis)
Generate and return a matrix that represents a rotation of
angle radians around the axis axis. |
static MatrixM4x4F |
MatrixM4x4F.makeRotation(double angle,
VectorReadable3FType axis,
MatrixM4x4F out)
Generate a matrix that represents a rotation of
angle
radians around the axis axis and save to out. |
static MatrixM4x4F |
QuaternionM4F.makeRotationMatrix4x4(QuaternionReadable4FType q,
MatrixM4x4F m)
Produce a rotation matrix from the quaternion
q, saving the
result to m. |
static MatrixM4x4F |
QuaternionI4F.makeRotationMatrix4x4(QuaternionReadable4FType q,
MatrixM4x4F m)
Produce a rotation matrix from the quaternion
q, saving the
result to m. |
static MatrixM4x4F |
MatrixM4x4F.makeTranslation3F(VectorReadable3FType v)
Generate and return a matrix that represents a translation of
(v.x, v.y, v.z) from the origin. |
static MatrixM4x4F |
MatrixM4x4F.makeTranslation3F(VectorReadable3FType v,
MatrixM4x4F out)
Generate a matrix that represents a translation of
(v.x, v.y, v.z) from the origin, and save to
out. |
static MatrixM4x4F |
MatrixM4x4F.makeTranslation3I(VectorReadable3IType v)
Generate and return a matrix that represents a translation of
(v.x, v.y, v.z) from the origin. |
static MatrixM4x4F |
MatrixM4x4F.makeTranslation3I(VectorReadable3IType v,
MatrixM4x4F out)
Generate a matrix that represents a translation of
(v.x, v.y, v.z) from the origin, and save to
out. |
static MatrixM4x4F |
MatrixM4x4F.multiply(MatrixReadable4x4FType m0,
MatrixReadable4x4FType m1,
MatrixM4x4F out)
Multiply the matrix
m0 with the matrix m1,
writing the result to out. |
static MatrixM4x4F |
MatrixM4x4F.multiplyInPlace(MatrixM4x4F m0,
MatrixReadable4x4FType m1)
Multiply the matrix
m0 with the matrix m1,
writing the result to m0. |
static MatrixM4x4F |
MatrixM4x4F.rotate(double angle,
MatrixReadable4x4FType m,
VectorReadable3FType axis,
MatrixM4x4F out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static MatrixM4x4F |
MatrixM4x4F.rotateInPlace(double angle,
MatrixM4x4F m,
VectorReadable3FType axis)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into m. |
static MatrixM4x4F |
MatrixM4x4F.rotateInPlaceWithContext(MatrixM4x4F.Context context,
double angle,
MatrixM4x4F m,
VectorReadable3FType axis)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into m. |
static MatrixM4x4F |
MatrixM4x4F.rotateWithContext(MatrixM4x4F.Context context,
double angle,
MatrixReadable4x4FType m,
VectorReadable3FType axis,
MatrixM4x4F out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static MatrixM4x4F |
MatrixM4x4F.scale(MatrixReadable4x4FType m,
double r,
MatrixM4x4F out)
Scale all elements of the matrix
m by the scaling value
r, saving the result in out. |
static MatrixM4x4F |
MatrixM4x4F.scaleInPlace(MatrixM4x4F m,
double r)
Scale all elements of the matrix
m by the scaling value
r, saving the result in m. |
static MatrixM4x4F |
MatrixM4x4F.scaleRow(MatrixReadable4x4FType m,
int row,
double r,
MatrixM4x4F out)
Scale row
r of the matrix m by r,
saving the result to row r of out. |
static MatrixM4x4F |
MatrixM4x4F.scaleRowInPlace(MatrixM4x4F m,
int row,
double r)
Scale row
row of the matrix m by r
, saving the result to row r of m. |
static MatrixM4x4F |
MatrixM4x4F.scaleRowInPlaceWithContext(MatrixM4x4F.Context context,
MatrixM4x4F m,
int row,
double r)
Scale row
row of the matrix m by r
, saving the result to row r of m. |
static MatrixM4x4F |
MatrixM4x4F.scaleRowWithContext(MatrixM4x4F.Context context,
MatrixReadable4x4FType m,
int row,
double r,
MatrixM4x4F out)
Scale row
row of the matrix m by r
, saving the result to row r of out. |
MatrixM4x4F |
MatrixM4x4F.set(int row,
int column,
float value)
Set the value at the given row and column.
|
static MatrixM4x4F |
MatrixM4x4F.set(MatrixM4x4F m,
int row,
int column,
float value)
Set the value in the matrix
m at row row,
column column to value. |
static MatrixM4x4F |
MatrixM4x4F.setIdentity(MatrixM4x4F m)
Set the given matrix
m to the identity matrix. |
static MatrixM4x4F |
MatrixM4x4F.setZero(MatrixM4x4F m)
Set the given matrix
m to the zero matrix. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector2F(MatrixReadable4x4FType m,
VectorReadable2FType v,
MatrixM4x4F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector2FInPlace(MatrixM4x4F m,
VectorReadable2FType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector2I(MatrixReadable4x4FType m,
VectorReadable2IType v,
MatrixM4x4F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector2IInPlace(MatrixM4x4F m,
VectorReadable2IType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector3F(MatrixReadable4x4FType m,
VectorReadable3FType v,
MatrixM4x4F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector3FInPlace(MatrixM4x4F m,
VectorReadable3FType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector3I(MatrixReadable4x4FType m,
VectorReadable3IType v,
MatrixM4x4F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector3IInPlace(MatrixM4x4F m,
VectorReadable3IType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM4x4F |
MatrixM4x4F.transpose(MatrixReadable4x4FType m,
MatrixM4x4F out)
Transpose the given matrix
m, writing the resulting matrix
to out. |
static MatrixM4x4F |
MatrixM4x4F.transposeInPlace(MatrixM4x4F m)
Transpose the given matrix
m, writing the resulting matrix
to m. |
| Modifier and Type | Method and Description |
|---|---|
static com.io7m.jfunctional.OptionType<MatrixM4x4F> |
MatrixM4x4F.invert(MatrixReadable4x4FType m,
MatrixM4x4F out)
Calculate the inverse of the matrix
m, saving the resulting
matrix to out. |
static com.io7m.jfunctional.OptionType<MatrixM4x4F> |
MatrixM4x4F.invertInPlace(MatrixM4x4F m)
Calculate the inverse of the matrix
m, saving the resulting
matrix to m. |
static com.io7m.jfunctional.OptionType<MatrixM4x4F> |
MatrixM4x4F.invertInPlaceWithContext(MatrixM4x4F.Context context,
MatrixM4x4F m)
Calculate the inverse of the matrix
m, saving the resulting
matrix to m. |
static com.io7m.jfunctional.OptionType<MatrixM4x4F> |
MatrixM4x4F.invertWithContext(MatrixM4x4F.Context context,
MatrixReadable4x4FType m,
MatrixM4x4F out)
Calculate the inverse of the matrix
m, saving the resulting
matrix to out. |
| Modifier and Type | Method and Description |
|---|---|
static MatrixM4x4F |
MatrixM4x4F.add(MatrixReadable4x4FType m0,
MatrixReadable4x4FType m1,
MatrixM4x4F out)
Elementwise add of matrices
m0 and m1. |
static MatrixM4x4F |
MatrixM4x4F.addInPlace(MatrixM4x4F m0,
MatrixReadable4x4FType m1)
Elementwise add of matrices
m0 and m1,
returning the result in m0. |
static MatrixM4x4F |
MatrixM4x4F.addRowScaled(MatrixReadable4x4FType m,
int row_a,
int row_b,
int row_c,
double r,
MatrixM4x4F out)
Add the values in row
row_b to the values in row
row_a scaled by r, saving the resulting row in
row row_c of the matrix out. |
static MatrixM4x4F |
MatrixM4x4F.addRowScaledInPlace(MatrixM4x4F m,
int row_a,
int row_b,
int row_c,
double r)
Add the values in row
row_b to the values in row
row_a scaled by r, saving the resulting row in
row row_c of the matrix m. |
static MatrixM4x4F |
MatrixM4x4F.addRowScaledWithContext(MatrixM4x4F.Context context,
MatrixReadable4x4FType m,
int row_a,
int row_b,
int row_c,
double r,
MatrixM4x4F out)
Add the values in row
row_b to the values in row
row_a scaled by r, saving the resulting row in
row row_c of the matrix out. |
static MatrixM4x4F |
MatrixM4x4F.copy(MatrixReadable4x4FType input,
MatrixM4x4F output)
Copy the contents of the matrix
input to the matrix
output, completely replacing all elements. |
static MatrixM4x4F |
MatrixM4x4F.exchangeRows(MatrixReadable4x4FType m,
int row_a,
int row_b,
MatrixM4x4F out)
Exchange the row
row_a and row row_b of the
matrix m, saving the exchanged rows to out. |
static MatrixM4x4F |
MatrixM4x4F.exchangeRowsInPlace(MatrixM4x4F m,
int row_a,
int row_b)
Exchange the row
row_a and row row_b of the
matrix m, saving the exchanged rows to m. |
static MatrixM4x4F |
MatrixM4x4F.exchangeRowsInPlaceWithContext(MatrixM4x4F.Context context,
MatrixM4x4F m,
int row_a,
int row_b)
Exchange the row
row_a and row row_b of the
matrix m, saving the exchanged rows to m. |
static MatrixM4x4F |
MatrixM4x4F.exchangeRowsWithContext(MatrixM4x4F.Context context,
MatrixReadable4x4FType m,
int row_a,
int row_b,
MatrixM4x4F out)
Exchange two rows
row_a and row row_b of the
matrix m, saving the exchanged rows to out . |
static FloatBuffer |
MatrixM4x4F.floatBuffer(MatrixM4x4F m) |
static com.io7m.jfunctional.OptionType<MatrixM4x4F> |
MatrixM4x4F.invert(MatrixReadable4x4FType m,
MatrixM4x4F out)
Calculate the inverse of the matrix
m, saving the resulting
matrix to out. |
static com.io7m.jfunctional.OptionType<MatrixM4x4F> |
MatrixM4x4F.invertInPlace(MatrixM4x4F m)
Calculate the inverse of the matrix
m, saving the resulting
matrix to m. |
static com.io7m.jfunctional.OptionType<MatrixM4x4F> |
MatrixM4x4F.invertInPlaceWithContext(MatrixM4x4F.Context context,
MatrixM4x4F m)
Calculate the inverse of the matrix
m, saving the resulting
matrix to m. |
static com.io7m.jfunctional.OptionType<MatrixM4x4F> |
MatrixM4x4F.invertWithContext(MatrixM4x4F.Context context,
MatrixReadable4x4FType m,
MatrixM4x4F out)
Calculate the inverse of the matrix
m, saving the resulting
matrix to out. |
static void |
MatrixM4x4F.lookAtWithContext(MatrixM4x4F.Context context,
VectorReadable3FType origin,
VectorReadable3FType target,
VectorReadable3FType up,
MatrixM4x4F out_matrix)
Calculate a matrix representing a "camera" looking from the point
origin to the point target. |
static MatrixM4x4F |
MatrixM4x4F.makeRotation(double angle,
VectorReadable3FType axis,
MatrixM4x4F out)
Generate a matrix that represents a rotation of
angle
radians around the axis axis and save to out. |
static MatrixM4x4F |
QuaternionM4F.makeRotationMatrix4x4(QuaternionReadable4FType q,
MatrixM4x4F m)
Produce a rotation matrix from the quaternion
q, saving the
result to m. |
static MatrixM4x4F |
QuaternionI4F.makeRotationMatrix4x4(QuaternionReadable4FType q,
MatrixM4x4F m)
Produce a rotation matrix from the quaternion
q, saving the
result to m. |
static MatrixM4x4F |
MatrixM4x4F.makeTranslation3F(VectorReadable3FType v,
MatrixM4x4F out)
Generate a matrix that represents a translation of
(v.x, v.y, v.z) from the origin, and save to
out. |
static MatrixM4x4F |
MatrixM4x4F.makeTranslation3I(VectorReadable3IType v,
MatrixM4x4F out)
Generate a matrix that represents a translation of
(v.x, v.y, v.z) from the origin, and save to
out. |
static MatrixM4x4F |
MatrixM4x4F.multiply(MatrixReadable4x4FType m0,
MatrixReadable4x4FType m1,
MatrixM4x4F out)
Multiply the matrix
m0 with the matrix m1,
writing the result to out. |
static MatrixM4x4F |
MatrixM4x4F.multiplyInPlace(MatrixM4x4F m0,
MatrixReadable4x4FType m1)
Multiply the matrix
m0 with the matrix m1,
writing the result to m0. |
static MatrixM4x4F |
MatrixM4x4F.rotate(double angle,
MatrixReadable4x4FType m,
VectorReadable3FType axis,
MatrixM4x4F out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static MatrixM4x4F |
MatrixM4x4F.rotateInPlace(double angle,
MatrixM4x4F m,
VectorReadable3FType axis)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into m. |
static MatrixM4x4F |
MatrixM4x4F.rotateInPlaceWithContext(MatrixM4x4F.Context context,
double angle,
MatrixM4x4F m,
VectorReadable3FType axis)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into m. |
static MatrixM4x4F |
MatrixM4x4F.rotateWithContext(MatrixM4x4F.Context context,
double angle,
MatrixReadable4x4FType m,
VectorReadable3FType axis,
MatrixM4x4F out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static MatrixM4x4F |
MatrixM4x4F.scale(MatrixReadable4x4FType m,
double r,
MatrixM4x4F out)
Scale all elements of the matrix
m by the scaling value
r, saving the result in out. |
static MatrixM4x4F |
MatrixM4x4F.scaleInPlace(MatrixM4x4F m,
double r)
Scale all elements of the matrix
m by the scaling value
r, saving the result in m. |
static MatrixM4x4F |
MatrixM4x4F.scaleRow(MatrixReadable4x4FType m,
int row,
double r,
MatrixM4x4F out)
Scale row
r of the matrix m by r,
saving the result to row r of out. |
static MatrixM4x4F |
MatrixM4x4F.scaleRowInPlace(MatrixM4x4F m,
int row,
double r)
Scale row
row of the matrix m by r
, saving the result to row r of m. |
static MatrixM4x4F |
MatrixM4x4F.scaleRowInPlaceWithContext(MatrixM4x4F.Context context,
MatrixM4x4F m,
int row,
double r)
Scale row
row of the matrix m by r
, saving the result to row r of m. |
static MatrixM4x4F |
MatrixM4x4F.scaleRowWithContext(MatrixM4x4F.Context context,
MatrixReadable4x4FType m,
int row,
double r,
MatrixM4x4F out)
Scale row
row of the matrix m by r
, saving the result to row r of out. |
static MatrixM4x4F |
MatrixM4x4F.set(MatrixM4x4F m,
int row,
int column,
float value)
Set the value in the matrix
m at row row,
column column to value. |
static MatrixM4x4F |
MatrixM4x4F.setIdentity(MatrixM4x4F m)
Set the given matrix
m to the identity matrix. |
static MatrixM4x4F |
MatrixM4x4F.setZero(MatrixM4x4F m)
Set the given matrix
m to the zero matrix. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector2F(MatrixReadable4x4FType m,
VectorReadable2FType v,
MatrixM4x4F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector2FInPlace(MatrixM4x4F m,
VectorReadable2FType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector2I(MatrixReadable4x4FType m,
VectorReadable2IType v,
MatrixM4x4F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector2IInPlace(MatrixM4x4F m,
VectorReadable2IType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector3F(MatrixReadable4x4FType m,
VectorReadable3FType v,
MatrixM4x4F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector3FInPlace(MatrixM4x4F m,
VectorReadable3FType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector3I(MatrixReadable4x4FType m,
VectorReadable3IType v,
MatrixM4x4F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4F |
MatrixM4x4F.translateByVector3IInPlace(MatrixM4x4F m,
VectorReadable3IType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM4x4F |
MatrixM4x4F.transpose(MatrixReadable4x4FType m,
MatrixM4x4F out)
Transpose the given matrix
m, writing the resulting matrix
to out. |
static MatrixM4x4F |
MatrixM4x4F.transposeInPlace(MatrixM4x4F m)
Transpose the given matrix
m, writing the resulting matrix
to m. |
| Constructor and Description |
|---|
MatrixM4x4F(MatrixM4x4F source)
Construct a new copy of the given matrix.
|
Copyright © 2015 <code@io7m.com> http://io7m.com