public final class MatrixDirectM2x2F extends Object implements MatrixDirect2x2FType
The default implementation of the MatrixDirect2x2FType
interface.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
FloatBuffer |
getDirectFloatBuffer() |
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 column) |
int |
hashCode() |
static MatrixDirect2x2FType |
newMatrix() |
static MatrixDirect2x2FType |
newMatrixFrom(MatrixReadable2x2FType m) |
void |
setR0C0F(float x)
Set row 0, column 0 of the matrix to
x. |
void |
setR0C1F(float x)
Set row 0, column 1 of the matrix to
x. |
void |
setR1C0F(float x)
Set row 1, column 0 of the matrix to
x. |
void |
setR1C1F(float x)
Set row 1, column 1 of the matrix to
x. |
void |
setRowColumnF(int row,
int column,
float x)
Set the value from the matrix at row
row, column column to
value. |
void |
setRowWith2F(int row,
VectorReadable2FType v)
Set row
row of the matrix to v. |
void |
setRowWith2FUnsafe(int row,
VectorReadable2FType v)
Set row
row of the matrix to v. |
String |
toString() |
public static MatrixDirect2x2FType newMatrix()
public static MatrixDirect2x2FType newMatrixFrom(MatrixReadable2x2FType m)
m - The source matrixpublic FloatBuffer getDirectFloatBuffer()
getDirectFloatBuffer in interface MatrixDirectFTypepublic void setRowWith2F(int row,
VectorReadable2FType v)
MatrixWritable2x2FTyperow of the matrix to v.setRowWith2F in interface MatrixWritable2x2FTyperow - The row indexv - The row vectorpublic void setRowWith2FUnsafe(int row,
VectorReadable2FType v)
MatrixWritable2x2FTyperow of the matrix to v. No bounds checking is
performed for row, and out-of-bounds values result in undefined
behaviour.setRowWith2FUnsafe in interface MatrixWritable2x2FTyperow - The row indexv - The row vectorpublic <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 void setR0C0F(float x)
MatrixWritable2x2FTypex.setR0C0F in interface MatrixWritable2x2FTypex - The valuepublic float getR1C0F()
getR1C0F in interface MatrixReadable2x2FTypepublic void setR1C0F(float x)
MatrixWritable2x2FTypex.setR1C0F in interface MatrixWritable2x2FTypex - The valuepublic float getR0C1F()
getR0C1F in interface MatrixReadable2x2FTypepublic void setR0C1F(float x)
MatrixWritable2x2FTypex.setR0C1F in interface MatrixWritable2x2FTypex - The valuepublic float getR1C1F()
getR1C1F in interface MatrixReadable2x2FTypepublic void setR1C1F(float x)
MatrixWritable2x2FTypex.setR1C1F in interface MatrixWritable2x2FTypex - The valuepublic float getRowColumnF(int row,
int column)
getRowColumnF in interface MatrixReadableFTyperow - The rowcolumn - The columnrow , column column.public void setRowColumnF(int row,
int column,
float x)
MatrixWritableFTyperow, column column to
value.setRowColumnF in interface MatrixWritableFTyperow - The rowcolumn - The columnx - The valueCopyright © 2016 <code@io7m.com> http://io7m.com