| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Method and Description |
|---|---|
static MatrixM3x3F |
MatrixM3x3F.add(MatrixReadable3x3FType m0,
MatrixReadable3x3FType m1,
MatrixM3x3F out)
Elementwise add of matrices
m0 and m1. |
static MatrixM3x3F |
MatrixM3x3F.addInPlace(MatrixM3x3F m0,
MatrixM3x3F m1)
Elementwise add of matrices
m0 and m1,
returning the result in m0. |
static MatrixM3x3F |
MatrixM3x3F.addRowScaled(MatrixReadable3x3FType m,
int row_a,
int row_b,
int row_c,
double r,
MatrixM3x3F 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 MatrixM3x3F |
MatrixM3x3F.addRowScaledInPlace(MatrixM3x3F 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 MatrixM3x3F |
MatrixM3x3F.copy(MatrixReadable3x3FType input,
MatrixM3x3F output)
Copy the contents of the matrix
input to the matrix
output, completely replacing all elements. |
static MatrixM3x3F |
MatrixM3x3F.exchangeRows(MatrixReadable3x3FType m,
int row_a,
int row_b,
MatrixM3x3F out)
Exchange the row
row_a and row row_b of the
matrix m, saving the exchanged rows to out . |
static MatrixM3x3F |
MatrixM3x3F.exchangeRowsInPlace(MatrixM3x3F 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 MatrixM3x3F |
MatrixM3x3F.makeRotation(double angle,
VectorReadable3FType axis)
Generate and return a matrix that represents a rotation of
angle radians around the axis axis. |
static MatrixM3x3F |
MatrixM3x3F.makeRotation(double angle,
VectorReadable3FType axis,
MatrixM3x3F out)
Generate a matrix that represents a rotation of
angle
radians around the axis axis and save to out. |
static MatrixM3x3F |
QuaternionM4F.makeRotationMatrix3x3(QuaternionM4F q,
MatrixM3x3F m)
Produce a rotation matrix from the quaternion
q, saving the
result to m. |
static MatrixM3x3F |
QuaternionI4F.makeRotationMatrix3x3(QuaternionReadable4FType q,
MatrixM3x3F m)
Produce a rotation matrix from the quaternion
q, saving the
result to m. |
static MatrixM3x3F |
MatrixM3x3F.makeTranslation2F(VectorReadable2FType v,
MatrixM3x3F out)
Create a translation matrix that represents a translation by the vector
v, writing the resulting matrix to out. |
static MatrixM3x3F |
MatrixM3x3F.makeTranslation2I(VectorReadable2IType v,
MatrixM3x3F out)
Create a translation matrix that represents a translation by the vector
v, writing the resulting matrix to out. |
static MatrixM3x3F |
MatrixM3x3F.multiply(MatrixReadable3x3FType m0,
MatrixReadable3x3FType m1,
MatrixM3x3F out)
Multiply the matrix
m0 with the matrix m1,
writing the result to out. |
static MatrixM3x3F |
MatrixM3x3F.multiplyInPlace(MatrixM3x3F m0,
MatrixReadable3x3FType m1)
Multiply the matrix
m0 with the matrix m1,
writing the result to m0. |
static MatrixM3x3F |
MatrixM3x3F.rotate(double angle,
MatrixReadable3x3FType m,
VectorReadable3FType axis,
MatrixM3x3F out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static MatrixM3x3F |
MatrixM3x3F.rotateInPlace(double angle,
MatrixM3x3F m,
VectorReadable3FType axis)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into m. |
static MatrixM3x3F |
MatrixM3x3F.rotateInPlaceWithContext(MatrixM3x3F.Context context,
double angle,
MatrixM3x3F m,
VectorReadable3FType axis)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into m. |
static MatrixM3x3F |
MatrixM3x3F.rotateWithContext(MatrixM3x3F.Context context,
double angle,
MatrixReadable3x3FType m,
VectorReadable3FType axis,
MatrixM3x3F out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static MatrixM3x3F |
MatrixM3x3F.scale(MatrixReadable3x3FType m,
double r,
MatrixM3x3F out)
Scale all elements of the matrix
m by the scaling value
r, saving the result in out. |
static MatrixM3x3F |
MatrixM3x3F.scaleInPlace(MatrixM3x3F m,
double r)
Scale all elements of the matrix
m by the scaling value
r, saving the result in m. |
static MatrixM3x3F |
MatrixM3x3F.scaleRow(MatrixReadable3x3FType m,
int row,
double r,
MatrixM3x3F out)
Scale row
r of the matrix m by r,
saving the result to row r of out. |
static MatrixM3x3F |
MatrixM3x3F.scaleRowInPlace(MatrixM3x3F m,
int row,
double r)
Scale row
r of the matrix m by r,
saving the result to row r of m. |
MatrixM3x3F |
MatrixM3x3F.set(int row,
int column,
float value)
Set the value at the given row and column.
|
static MatrixM3x3F |
MatrixM3x3F.set(MatrixM3x3F m,
int row,
int column,
float value)
Set the value in the matrix
m at row row,
column column to value. |
static MatrixM3x3F |
MatrixM3x3F.setIdentity(MatrixM3x3F m)
Set the given matrix
m to the identity matrix. |
static MatrixM3x3F |
MatrixM3x3F.setZero(MatrixM3x3F m)
Set the given matrix
m to the zero matrix. |
static MatrixM3x3F |
MatrixM3x3F.translateByVector2F(MatrixReadable3x3FType m,
VectorReadable2FType v,
MatrixM3x3F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM3x3F |
MatrixM3x3F.translateByVector2FInPlace(MatrixM3x3F m,
VectorReadable2FType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM3x3F |
MatrixM3x3F.translateByVector2I(MatrixReadable3x3FType m,
VectorReadable2IType v,
MatrixM3x3F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM3x3F |
MatrixM3x3F.translateByVector2IInPlace(MatrixM3x3F m,
VectorReadable2IType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM3x3F |
MatrixM3x3F.transpose(MatrixReadable3x3FType m,
MatrixM3x3F out)
Transpose the given matrix
m, writing the resulting matrix
to out. |
static MatrixM3x3F |
MatrixM3x3F.transposeInPlace(MatrixM3x3F m)
Transpose the given matrix
m, writing the resulting matrix
to m. |
| Modifier and Type | Method and Description |
|---|---|
static com.io7m.jfunctional.OptionType<MatrixM3x3F> |
MatrixM3x3F.invert(MatrixReadable3x3FType m,
MatrixM3x3F out)
Calculate the inverse of the matrix
m, saving the resulting
matrix to out. |
static com.io7m.jfunctional.OptionType<MatrixM3x3F> |
MatrixM3x3F.invertInPlace(MatrixM3x3F m)
Calculate the inverse of the matrix
m, saving the resulting
matrix to m. |
| Modifier and Type | Method and Description |
|---|---|
static MatrixM3x3F |
MatrixM3x3F.add(MatrixReadable3x3FType m0,
MatrixReadable3x3FType m1,
MatrixM3x3F out)
Elementwise add of matrices
m0 and m1. |
static MatrixM3x3F |
MatrixM3x3F.addInPlace(MatrixM3x3F m0,
MatrixM3x3F m1)
Elementwise add of matrices
m0 and m1,
returning the result in m0. |
static MatrixM3x3F |
MatrixM3x3F.addRowScaled(MatrixReadable3x3FType m,
int row_a,
int row_b,
int row_c,
double r,
MatrixM3x3F 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 MatrixM3x3F |
MatrixM3x3F.addRowScaledInPlace(MatrixM3x3F 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 MatrixM3x3F |
MatrixM3x3F.copy(MatrixReadable3x3FType input,
MatrixM3x3F output)
Copy the contents of the matrix
input to the matrix
output, completely replacing all elements. |
static MatrixM3x3F |
MatrixM3x3F.exchangeRows(MatrixReadable3x3FType m,
int row_a,
int row_b,
MatrixM3x3F out)
Exchange the row
row_a and row row_b of the
matrix m, saving the exchanged rows to out . |
static MatrixM3x3F |
MatrixM3x3F.exchangeRowsInPlace(MatrixM3x3F 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 FloatBuffer |
MatrixM3x3F.floatBuffer(MatrixM3x3F m) |
static com.io7m.jfunctional.OptionType<MatrixM3x3F> |
MatrixM3x3F.invert(MatrixReadable3x3FType m,
MatrixM3x3F out)
Calculate the inverse of the matrix
m, saving the resulting
matrix to out. |
static com.io7m.jfunctional.OptionType<MatrixM3x3F> |
MatrixM3x3F.invertInPlace(MatrixM3x3F m)
Calculate the inverse of the matrix
m, saving the resulting
matrix to m. |
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 MatrixM3x3F |
MatrixM3x3F.makeRotation(double angle,
VectorReadable3FType axis,
MatrixM3x3F out)
Generate a matrix that represents a rotation of
angle
radians around the axis axis and save to out. |
static MatrixM3x3F |
QuaternionM4F.makeRotationMatrix3x3(QuaternionM4F q,
MatrixM3x3F m)
Produce a rotation matrix from the quaternion
q, saving the
result to m. |
static MatrixM3x3F |
QuaternionI4F.makeRotationMatrix3x3(QuaternionReadable4FType q,
MatrixM3x3F m)
Produce a rotation matrix from the quaternion
q, saving the
result to m. |
static MatrixM3x3F |
MatrixM3x3F.makeTranslation2F(VectorReadable2FType v,
MatrixM3x3F out)
Create a translation matrix that represents a translation by the vector
v, writing the resulting matrix to out. |
static MatrixM3x3F |
MatrixM3x3F.makeTranslation2I(VectorReadable2IType v,
MatrixM3x3F out)
Create a translation matrix that represents a translation by the vector
v, writing the resulting matrix to out. |
static MatrixM3x3F |
MatrixM3x3F.multiply(MatrixReadable3x3FType m0,
MatrixReadable3x3FType m1,
MatrixM3x3F out)
Multiply the matrix
m0 with the matrix m1,
writing the result to out. |
static MatrixM3x3F |
MatrixM3x3F.multiplyInPlace(MatrixM3x3F m0,
MatrixReadable3x3FType m1)
Multiply the matrix
m0 with the matrix m1,
writing the result to m0. |
static MatrixM3x3F |
MatrixM3x3F.rotate(double angle,
MatrixReadable3x3FType m,
VectorReadable3FType axis,
MatrixM3x3F out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static MatrixM3x3F |
MatrixM3x3F.rotateInPlace(double angle,
MatrixM3x3F m,
VectorReadable3FType axis)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into m. |
static MatrixM3x3F |
MatrixM3x3F.rotateInPlaceWithContext(MatrixM3x3F.Context context,
double angle,
MatrixM3x3F m,
VectorReadable3FType axis)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into m. |
static MatrixM3x3F |
MatrixM3x3F.rotateWithContext(MatrixM3x3F.Context context,
double angle,
MatrixReadable3x3FType m,
VectorReadable3FType axis,
MatrixM3x3F out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static MatrixM3x3F |
MatrixM3x3F.scale(MatrixReadable3x3FType m,
double r,
MatrixM3x3F out)
Scale all elements of the matrix
m by the scaling value
r, saving the result in out. |
static MatrixM3x3F |
MatrixM3x3F.scaleInPlace(MatrixM3x3F m,
double r)
Scale all elements of the matrix
m by the scaling value
r, saving the result in m. |
static MatrixM3x3F |
MatrixM3x3F.scaleRow(MatrixReadable3x3FType m,
int row,
double r,
MatrixM3x3F out)
Scale row
r of the matrix m by r,
saving the result to row r of out. |
static MatrixM3x3F |
MatrixM3x3F.scaleRowInPlace(MatrixM3x3F m,
int row,
double r)
Scale row
r of the matrix m by r,
saving the result to row r of m. |
static MatrixM3x3F |
MatrixM3x3F.set(MatrixM3x3F m,
int row,
int column,
float value)
Set the value in the matrix
m at row row,
column column to value. |
static MatrixM3x3F |
MatrixM3x3F.setIdentity(MatrixM3x3F m)
Set the given matrix
m to the identity matrix. |
static MatrixM3x3F |
MatrixM3x3F.setZero(MatrixM3x3F m)
Set the given matrix
m to the zero matrix. |
static MatrixM3x3F |
MatrixM3x3F.translateByVector2F(MatrixReadable3x3FType m,
VectorReadable2FType v,
MatrixM3x3F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM3x3F |
MatrixM3x3F.translateByVector2FInPlace(MatrixM3x3F m,
VectorReadable2FType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM3x3F |
MatrixM3x3F.translateByVector2I(MatrixReadable3x3FType m,
VectorReadable2IType v,
MatrixM3x3F out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM3x3F |
MatrixM3x3F.translateByVector2IInPlace(MatrixM3x3F m,
VectorReadable2IType v)
Translate the matrix
m by the vector v, storing
the resulting matrix in m. |
static MatrixM3x3F |
MatrixM3x3F.transpose(MatrixReadable3x3FType m,
MatrixM3x3F out)
Transpose the given matrix
m, writing the resulting matrix
to out. |
static MatrixM3x3F |
MatrixM3x3F.transposeInPlace(MatrixM3x3F m)
Transpose the given matrix
m, writing the resulting matrix
to m. |
Copyright © 2015 <code@io7m.com> http://io7m.com