@EqualityStructural @Immutable public final class MatrixI2x2F extends Object implements MatrixReadable2x2FType
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
float |
getR0C0F() |
float |
getR0C1F() |
float |
getR1C0F() |
float |
getR1C1F() |
<V extends VectorWritable2FType> |
getRow2F(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable2FType> |
getRow2FUnsafe(int row,
V out)
Retrieve row
row, saving the result to out. |
float |
getRowColumnF(int row,
int col) |
int |
hashCode() |
static MatrixI2x2F |
identity() |
<M extends MatrixWritable2x2FType> |
makeMatrix2x2F(M m)
Write the current matrix into the given mutable matrix.
|
static MatrixI2x2F |
newFromColumns(VectorReadable2FType column_0,
VectorReadable2FType column_1)
Construct a new immutable 2x2 matrix from the given columns.
|
static MatrixI2x2F |
newFromReadable(MatrixReadable2x2FType m)
Construct a new immutable 2x2 matrix from the given readable 2x2 matrix.
|
String |
toString() |
public static MatrixI2x2F identity()
public static MatrixI2x2F newFromColumns(VectorReadable2FType column_0, VectorReadable2FType column_1)
column_0 - The first columncolumn_1 - The second columnpublic static MatrixI2x2F newFromReadable(MatrixReadable2x2FType m)
m - The original matrixpublic <V extends VectorWritable2FType> void getRow2F(int row, V out)
MatrixReadable2x2FTyperow, saving the result to out.getRow2F in interface MatrixReadable2x2FTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public <V extends VectorWritable2FType> void getRow2FUnsafe(int row, V out)
MatrixReadable2x2FTyperow, saving the result to out. No bounds
checking is performed for row, and out-of-bounds values result in
undefined behaviour.getRow2FUnsafe in interface MatrixReadable2x2FTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public float getR0C0F()
getR0C0F in interface MatrixReadable2x2FTypepublic float getR1C0F()
getR1C0F in interface MatrixReadable2x2FTypepublic float getR0C1F()
getR0C1F in interface MatrixReadable2x2FTypepublic float getR1C1F()
getR1C1F in interface MatrixReadable2x2FTypepublic float getRowColumnF(int row,
int col)
getRowColumnF in interface MatrixReadableFTyperow - The rowcol - The columnpublic <M extends MatrixWritable2x2FType> void makeMatrix2x2F(M m)
M - The precise type of mutable matrixm - The mutable matrixCopyright © 2016 <code@io7m.com> http://io7m.com