| Package | Description |
|---|---|
| com.io7m.jtensors |
| Modifier and Type | Class and Description |
|---|---|
class |
MatrixM3x3D
A 3x3 mutable matrix type with double precision elements.
|
| Modifier and Type | Method and Description |
|---|---|
static MatrixM3x3D |
MatrixM3x3D.add(MatrixReadable3x3DType m0,
MatrixReadable3x3DType m1,
MatrixM3x3D out)
Elementwise add of matrices
m0 and m1. |
static MatrixM3x3D |
MatrixM3x3D.addRowScaled(MatrixReadable3x3DType m,
int row_a,
int row_b,
int row_c,
double r,
MatrixM3x3D 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 MatrixM3x3D |
MatrixM3x3D.copy(MatrixReadable3x3DType input,
MatrixM3x3D output)
Copy the contents of the matrix
input to the matrix
output, completely replacing all elements. |
static double |
MatrixM3x3D.determinant(MatrixReadable3x3DType m)
Calculate the determinant of the matrix
m. |
static MatrixM3x3D |
MatrixM3x3D.exchangeRows(MatrixReadable3x3DType m,
int row_a,
int row_b,
MatrixM3x3D out)
Exchange the row
row_a and row row_b of the
matrix m, saving the exchanged rows to out. |
static double |
MatrixM3x3D.get(MatrixReadable3x3DType m,
int row,
int column) |
static com.io7m.jfunctional.OptionType<MatrixM3x3D> |
MatrixM3x3D.invert(MatrixReadable3x3DType m,
MatrixM3x3D out)
Calculate the inverse of the matrix
m, saving the resulting
matrix to out. |
static QuaternionI4D |
QuaternionI4D.makeFromRotationMatrix3x3(MatrixReadable3x3DType m)
Produce a quaternion equivalent to the rotation matrix
m. |
static QuaternionM4D |
QuaternionM4D.makeFromRotationMatrix3x3(MatrixReadable3x3DType m,
QuaternionM4D out)
Produce a quaternion equivalent to the rotation matrix
m,
writing the result to out. |
static MatrixM3x3D |
MatrixM3x3D.multiply(MatrixReadable3x3DType m0,
MatrixReadable3x3DType m1,
MatrixM3x3D out)
Multiply the matrix
m0 with the matrix m1,
writing the result to out. |
static MatrixM3x3D |
MatrixM3x3D.multiplyInPlace(MatrixM3x3D m0,
MatrixReadable3x3DType m1)
Multiply the matrix
m0 with the matrix m1,
writing the result to m0. |
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 MatrixM3x3D |
MatrixM3x3D.rotate(double angle,
MatrixReadable3x3DType m,
VectorReadable3DType axis,
MatrixM3x3D out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static MatrixM3x3D |
MatrixM3x3D.rotateWithContext(MatrixM3x3D.Context context,
double angle,
MatrixReadable3x3DType m,
VectorReadable3DType axis,
MatrixM3x3D out)
Rotate the matrix
m by angle radians around the
axis axis, saving the result into out. |
static VectorM3D |
MatrixM3x3D.row(MatrixReadable3x3DType m,
int row,
VectorM3D out) |
static MatrixM3x3D |
MatrixM3x3D.scale(MatrixReadable3x3DType m,
double r,
MatrixM3x3D out)
Scale all elements of the matrix
m by the scaling value
r, saving the result in out. |
static MatrixM3x3D |
MatrixM3x3D.scaleRow(MatrixReadable3x3DType m,
int row,
double r,
MatrixM3x3D out)
Scale row
r of the matrix m by r,
saving the result to row r of out. |
static double |
MatrixM3x3D.trace(MatrixReadable3x3DType m)
Return the trace of the matrix
m. |
static MatrixM3x3D |
MatrixM3x3D.translateByVector2D(MatrixReadable3x3DType m,
VectorReadable2DType v,
MatrixM3x3D out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM3x3D |
MatrixM3x3D.translateByVector2I(MatrixReadable3x3DType m,
VectorReadable2IType v,
MatrixM3x3D out)
Translate the matrix
m by the vector v, storing
the resulting matrix in out. |
static MatrixM3x3D |
MatrixM3x3D.transpose(MatrixReadable3x3DType m,
MatrixM3x3D out)
Transpose the given matrix
m, writing the resulting matrix
to out. |
| Constructor and Description |
|---|
MatrixM3x3D(MatrixReadable3x3DType source)
Construct a new copy of the given matrix.
|
Copyright © 2015 <code@io7m.com> http://io7m.com