public final class MatrixDirectM3x3F extends Object implements MatrixDirect3x3FType
The default implementation of the MatrixDirect3x3FType
interface.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
FloatBuffer |
getDirectFloatBuffer() |
float |
getR0C0F() |
float |
getR0C1F() |
float |
getR0C2F() |
float |
getR1C0F() |
float |
getR1C1F() |
float |
getR1C2F() |
float |
getR2C0F() |
float |
getR2C1F() |
float |
getR2C2F() |
<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. |
<V extends VectorWritable3FType> |
getRow3F(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable3FType> |
getRow3FUnsafe(int row,
V out)
Retrieve row
row, saving the result to out. |
float |
getRowColumnF(int row,
int column) |
int |
hashCode() |
static MatrixDirect3x3FType |
newMatrix() |
static MatrixDirect3x3FType |
newMatrixFrom(MatrixReadable3x3FType 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 |
setR0C2F(float x)
Set row 0, column 2 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 |
setR1C2F(float x)
Set row 1, column 2 of the matrix to
x. |
void |
setR2C0F(float x)
Set row 2, column 0 of the matrix to
x. |
void |
setR2C1F(float x)
Set row 2, column 1 of the matrix to
x. |
void |
setR2C2F(float x)
Set row 2, column 2 of the matrix to
x. |
void |
setRowColumnF(int row,
int column,
float value)
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. |
void |
setRowWith3F(int row,
VectorReadable3FType v)
Set row
row of the matrix to v. |
void |
setRowWith3FUnsafe(int row,
VectorReadable3FType v)
Set row
row of the matrix to v. |
String |
toString() |
public static MatrixDirect3x3FType newMatrix()
public static MatrixDirect3x3FType newMatrixFrom(MatrixReadable3x3FType m)
m - The source matrixpublic FloatBuffer getDirectFloatBuffer()
getDirectFloatBuffer in interface MatrixDirectFTypepublic <V extends VectorWritable3FType> void getRow3F(int row, V out)
MatrixReadable3x3FTyperow, saving the result to out.getRow3F in interface MatrixReadable3x3FTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public <V extends VectorWritable3FType> void getRow3FUnsafe(int row, V out)
MatrixReadable3x3FTyperow, saving the result to out. No bounds
checking is performed for row, and out-of-bounds values result in
undefined behaviour.getRow3FUnsafe in interface MatrixReadable3x3FTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public float getR0C2F()
getR0C2F in interface MatrixReadable3x3FTypepublic void setR0C2F(float x)
MatrixWritable3x3FTypex.setR0C2F in interface MatrixWritable3x3FTypex - The valuepublic float getR1C2F()
getR1C2F in interface MatrixReadable3x3FTypepublic void setR1C2F(float x)
MatrixWritable3x3FTypex.setR1C2F in interface MatrixWritable3x3FTypex - The valuepublic float getR2C0F()
getR2C0F in interface MatrixReadable3x3FTypepublic void setR2C0F(float x)
MatrixWritable3x3FTypex.setR2C0F in interface MatrixWritable3x3FTypex - The valuepublic float getR2C1F()
getR2C1F in interface MatrixReadable3x3FTypepublic void setR2C1F(float x)
MatrixWritable3x3FTypex.setR2C1F in interface MatrixWritable3x3FTypex - The valuepublic float getR2C2F()
getR2C2F in interface MatrixReadable3x3FTypepublic void setR2C2F(float x)
MatrixWritable3x3FTypex.setR2C2F in interface MatrixWritable3x3FTypex - The valuepublic float getRowColumnF(int row,
int column)
getRowColumnF in interface MatrixReadableFTyperow - The rowcolumn - The columnrow , column column.public void setRowWith3F(int row,
VectorReadable3FType v)
MatrixWritable3x3FTyperow of the matrix to v.setRowWith3F in interface MatrixWritable3x3FTyperow - The row indexv - The row vectorpublic 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 void setRowWith3FUnsafe(int row,
VectorReadable3FType v)
MatrixWritable3x3FTyperow of the matrix to v. No bounds checking is
performed for row, and out-of-bounds values result in undefined
behaviour.setRowWith3FUnsafe in interface MatrixWritable3x3FTyperow - The row indexv - The row vectorpublic void setRowColumnF(int row,
int column,
float value)
MatrixWritableFTyperow, column column to
value.setRowColumnF in interface MatrixWritableFTyperow - The rowcolumn - The columnvalue - The valuepublic <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 valueCopyright © 2015 <code@io7m.com> http://io7m.com