| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Class and Description |
|---|---|
class |
MatrixM4x4D
A 4x4 mutable matrix type with double precision elements.
|
| Modifier and Type | Method and Description |
|---|---|
static MatrixM4x4D |
MatrixM4x4D.add(MatrixReadable4x4DType m0,
MatrixReadable4x4DType m1,
MatrixM4x4D out)
Elementwise add of matrices
m0 and m1. |
static MatrixM4x4D |
MatrixM4x4D.addInPlace(MatrixM4x4D m0,
MatrixReadable4x4DType m1)
Elementwise add of matrices
m0 and m1,
returning the result in m0. |
static MatrixM4x4D |
MatrixM4x4D.addRowScaled(MatrixReadable4x4DType m,
int row_a,
int row_b,
int row_c,
double r,
MatrixM4x4D 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 MatrixM4x4D |
MatrixM4x4D.addRowScaledWithContext(MatrixM4x4D.Context context,
MatrixReadable4x4DType m,
int row_a,
int row_b,
int row_c,
double r,
MatrixM4x4D 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 MatrixM4x4D |
MatrixM4x4D.copy(MatrixReadable4x4DType input,
MatrixM4x4D output)
Copy the contents of the matrix
input to the matrix
output, completely replacing all elements. |
static double |
MatrixM4x4D.determinant(MatrixReadable4x4DType m)
Calculate the determinant of the matrix
m. |
static MatrixM4x4D |
MatrixM4x4D.exchangeRows(MatrixReadable4x4DType m,
int row_a,
int row_b,
MatrixM4x4D out)
Exchange the row
row_a and row row_b of the
matrix m, saving the exchanged rows to out. |
static MatrixM4x4D |
MatrixM4x4D.exchangeRowsWithContext(MatrixM4x4D.Context context,
MatrixReadable4x4DType m,
int row_a,
int row_b,
MatrixM4x4D out)
Exchange two rows
row_a and row row_b of the
matrix m, saving the exchanged rows to out . |
static double |
MatrixM4x4D.get(MatrixReadable4x4DType m,
int row,
int column) |
static com.io7m.jfunctional.OptionType<MatrixM4x4D> |
MatrixM4x4D.invert(MatrixReadable4x4DType m,
MatrixM4x4D out)
Calculate the inverse of the matrix
m, saving the resulting
matrix to out. |
static com.io7m.jfunctional.OptionType<MatrixM4x4D> |
MatrixM4x4D.invertWithContext(MatrixM4x4D.Context context,
MatrixReadable4x4DType m,
MatrixM4x4D out)
Calculate the inverse of the matrix
m, saving the resulting
matrix to out. |
static QuaternionI4D |
QuaternionI4D.makeFromRotationMatrix4x4(MatrixReadable4x4DType m)
Produce a quaternion equivalent to the rotation matrix
m,
writing the result to out. |
static QuaternionM4D |
QuaternionM4D.makeFromRotationMatrix4x4(MatrixReadable4x4DType m,
QuaternionM4D out)
Produce a quaternion equivalent to the rotation matrix
m,
writing the result to out. |
static MatrixM4x4D |
MatrixM4x4D.multiply(MatrixReadable4x4DType m0,
MatrixReadable4x4DType m1,
MatrixM4x4D out)
Multiply the matrix
m0 with the matrix m1,
writing the result to out. |
static MatrixM4x4D |
MatrixM4x4D.multiplyInPlace(MatrixM4x4D m0,
MatrixReadable4x4DType m1)
Multiply the matrix
m0 with the matrix m1,
writing the result to m0. |
static VectorM4D |
MatrixM4x4D.multiplyVector4D(MatrixReadable4x4DType m,
VectorReadable4DType v,
VectorM4D out)
Multiply the matrix
m with the vector v,
writing the resulting vector to out. |
static VectorM4D |
MatrixM4x4D.multiplyVector4DWithContext(MatrixM4x4D.Context context,
MatrixReadable4x4DType m,
VectorReadable4DType v,
VectorM4D out)
Multiply the matrix
m with the vector v,
writing the resulting vector to out. |
static MatrixM4x4D |
MatrixM4x4D.rotate(double angle,
MatrixReadable4x4DType m,
VectorReadable3DType axis,
MatrixM4x4D out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static MatrixM4x4D |
MatrixM4x4D.rotateWithContext(MatrixM4x4D.Context context,
double angle,
MatrixReadable4x4DType m,
VectorReadable3DType axis,
MatrixM4x4D out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static VectorM4D |
MatrixM4x4D.row(MatrixReadable4x4DType m,
int row,
VectorM4D out) |
static MatrixM4x4D |
MatrixM4x4D.scale(MatrixReadable4x4DType m,
double r,
MatrixM4x4D out)
Scale all elements of the matrix
m by the scaling value
r, saving the result in out. |
static MatrixM4x4D |
MatrixM4x4D.scaleRow(MatrixReadable4x4DType m,
int row,
double r,
MatrixM4x4D out)
Scale row
r of the matrix m by r,
saving the result to row r of out. |
static MatrixM4x4D |
MatrixM4x4D.scaleRowWithContext(MatrixM4x4D.Context context,
MatrixReadable4x4DType m,
int row,
double r,
MatrixM4x4D out)
Scale row
row of the matrix m by r
, saving the result to row r of out. |
static double |
MatrixM4x4D.trace(MatrixReadable4x4DType m)
Return the trace of the matrix
m. |
static MatrixM4x4D |
MatrixM4x4D.translateByVector2D(MatrixReadable4x4DType m,
VectorReadable2DType v,
MatrixM4x4D out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4D |
MatrixM4x4D.translateByVector2I(MatrixReadable4x4DType m,
VectorReadable2IType v,
MatrixM4x4D out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4D |
MatrixM4x4D.translateByVector3D(MatrixReadable4x4DType m,
VectorReadable3DType v,
MatrixM4x4D out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4D |
MatrixM4x4D.translateByVector3I(MatrixReadable4x4DType m,
VectorReadable3IType v,
MatrixM4x4D out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM4x4D |
MatrixM4x4D.transpose(MatrixReadable4x4DType m,
MatrixM4x4D out)
Transpose the given matrix
m, writing the resulting matrix
to out. |
Copyright © 2014 <code@io7m.com> http://io7m.com