@EqualityStructural @Immutable public final class MatrixI2x2D extends Object implements MatrixReadable2x2DType
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getR0C0D() |
double |
getR0C1D() |
double |
getR1C0D() |
double |
getR1C1D() |
<V extends VectorWritable2DType> |
getRow2D(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable2DType> |
getRow2DUnsafe(int row,
V out)
Retrieve row
row, saving the result to out. |
double |
getRowColumnD(int row,
int col) |
int |
hashCode() |
static MatrixI2x2D |
identity() |
<M extends MatrixWritable2x2DType> |
makeMatrix2x2D(M m)
Write the current matrix into the given mutable matrix.
|
static MatrixI2x2D |
newFromColumns(VectorReadable2DType column_0,
VectorReadable2DType column_1)
Construct a new immutable 2x2 matrix from the given columns.
|
static MatrixI2x2D |
newFromReadable(MatrixReadable2x2DType m)
Construct a new immutable 2x2 matrix from the given readable 2x2 matrix.
|
String |
toString() |
public static MatrixI2x2D identity()
public static MatrixI2x2D newFromColumns(VectorReadable2DType column_0, VectorReadable2DType column_1)
column_0 - The first columncolumn_1 - The second columnpublic static MatrixI2x2D newFromReadable(MatrixReadable2x2DType m)
m - The original matrixpublic <V extends VectorWritable2DType> void getRow2D(int row, V out)
MatrixReadable2x2DTyperow, saving the result to out.getRow2D in interface MatrixReadable2x2DTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public <V extends VectorWritable2DType> void getRow2DUnsafe(int row, V out)
MatrixReadable2x2DTyperow, saving the result to out. No bounds
checking is performed for row, and out-of-bounds values result in
undefined behaviour.getRow2DUnsafe in interface MatrixReadable2x2DTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public double getR0C0D()
getR0C0D in interface MatrixReadable2x2DTypepublic double getR1C0D()
getR1C0D in interface MatrixReadable2x2DTypepublic double getR0C1D()
getR0C1D in interface MatrixReadable2x2DTypepublic double getR1C1D()
getR1C1D in interface MatrixReadable2x2DTypepublic double getRowColumnD(int row,
int col)
getRowColumnD in interface MatrixReadableDTyperow - The rowcol - The columnpublic <M extends MatrixWritable2x2DType> void makeMatrix2x2D(M m)
M - The precise type of mutable matrixm - The mutable matrixCopyright © 2015 <code@io7m.com> http://io7m.com