public final class MatrixDirectM4x4F extends Object implements MatrixDirect4x4FType
The default implementation of the MatrixDirect4x4FType
interface.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
FloatBuffer |
getDirectFloatBuffer() |
float |
getR0C0F() |
float |
getR0C1F() |
float |
getR0C2F() |
float |
getR0C3F() |
float |
getR1C0F() |
float |
getR1C1F() |
float |
getR1C2F() |
float |
getR1C3F() |
float |
getR2C0F() |
float |
getR2C1F() |
float |
getR2C2F() |
float |
getR2C3F() |
float |
getR3C0F() |
float |
getR3C1F() |
float |
getR3C2F() |
float |
getR3C3F() |
<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. |
<V extends VectorWritable4FType> |
getRow4F(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable4FType> |
getRow4FUnsafe(int row,
V out)
Retrieve row
row, saving the result to out. |
float |
getRowColumnF(int row,
int column) |
int |
hashCode() |
static MatrixDirect4x4FType |
newMatrix() |
static MatrixDirect4x4FType |
newMatrixFrom(MatrixReadable4x4FType 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 |
setR0C3F(float x)
Set row 0, column 3 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 |
setR1C3F(float x)
Set row 1, column 3 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 |
setR2C3F(float x)
Set row 2, column 3 of the matrix to
x. |
void |
setR3C0F(float x)
Set row 3, column 0 of the matrix to
x. |
void |
setR3C1F(float x)
Set row 3, column 1 of the matrix to
x. |
void |
setR3C2F(float x)
Set row 3, column 2 of the matrix to
x. |
void |
setR3C3F(float x)
Set row 3, column 3 of the matrix to
x. |
void |
setRow0With4F(VectorReadable4FType v)
Set row 0 to
v. |
void |
setRow1With4F(VectorReadable4FType v)
Set row 1 to
v. |
void |
setRow2With4F(VectorReadable4FType v)
Set row 2 to
v. |
void |
setRow3With4F(VectorReadable4FType v)
Set row 3 to
v. |
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. |
void |
setRowWith4F(int row,
VectorReadable4FType v)
Set row
row of the matrix to v. |
void |
setRowWith4FUnsafe(int row,
VectorReadable4FType v)
Set row
row of the matrix to v. |
String |
toString() |
public static MatrixDirect4x4FType newMatrix()
public static MatrixDirect4x4FType newMatrixFrom(MatrixReadable4x4FType m)
m - The source matrixpublic FloatBuffer getDirectFloatBuffer()
getDirectFloatBuffer in interface MatrixDirectFTypepublic <V extends VectorWritable4FType> void getRow4F(int row, V out)
MatrixReadable4x4FTyperow, saving the result to out.getRow4F in interface MatrixReadable4x4FTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public <V extends VectorWritable4FType> void getRow4FUnsafe(int row, V out)
MatrixReadable4x4FTyperow, saving the result to out. No bounds
checking is performed for row, and out-of-bounds values result in
undefined behaviour.getRow4FUnsafe in interface MatrixReadable4x4FTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public float getR0C3F()
getR0C3F in interface MatrixReadable4x4FTypepublic void setR0C3F(float x)
MatrixWritable4x4FTypex.setR0C3F in interface MatrixWritable4x4FTypex - The valuepublic void setRowWith4F(int row,
VectorReadable4FType v)
MatrixWritable4x4FTyperow of the matrix to v.setRowWith4F in interface MatrixWritable4x4FTyperow - The row indexv - The row vectorpublic void setRowWith4FUnsafe(int row,
VectorReadable4FType v)
MatrixWritable4x4FTyperow of the matrix to v. No bounds checking is
performed for row, and out-of-bounds values result in undefined
behaviour.setRowWith4FUnsafe in interface MatrixWritable4x4FTyperow - The row indexv - The row vectorpublic void setRow0With4F(VectorReadable4FType v)
MatrixWritable4x4FTypev.setRow0With4F in interface MatrixWritable4x4FTypev - The row vectorpublic void setRow1With4F(VectorReadable4FType v)
MatrixWritable4x4FTypev.setRow1With4F in interface MatrixWritable4x4FTypev - The row vectorpublic void setRow2With4F(VectorReadable4FType v)
MatrixWritable4x4FTypev.setRow2With4F in interface MatrixWritable4x4FTypev - The row vectorpublic void setRow3With4F(VectorReadable4FType v)
MatrixWritable4x4FTypev.setRow3With4F in interface MatrixWritable4x4FTypev - The row vectorpublic float getR1C3F()
getR1C3F in interface MatrixReadable4x4FTypepublic void setR1C3F(float x)
MatrixWritable4x4FTypex.setR1C3F in interface MatrixWritable4x4FTypex - The valuepublic float getR2C3F()
getR2C3F in interface MatrixReadable4x4FTypepublic void setR2C3F(float x)
MatrixWritable4x4FTypex.setR2C3F in interface MatrixWritable4x4FTypex - The valuepublic float getR3C0F()
getR3C0F in interface MatrixReadable4x4FTypepublic void setR3C0F(float x)
MatrixWritable4x4FTypex.setR3C0F in interface MatrixWritable4x4FTypex - The valuepublic float getR3C1F()
getR3C1F in interface MatrixReadable4x4FTypepublic void setR3C1F(float x)
MatrixWritable4x4FTypex.setR3C1F in interface MatrixWritable4x4FTypex - The valuepublic float getR3C2F()
getR3C2F in interface MatrixReadable4x4FTypepublic void setR3C2F(float x)
MatrixWritable4x4FTypex.setR3C2F in interface MatrixWritable4x4FTypex - The valuepublic float getR3C3F()
getR3C3F in interface MatrixReadable4x4FTypepublic void setR3C3F(float x)
MatrixWritable4x4FTypex.setR3C3F in interface MatrixWritable4x4FTypex - 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 value)
MatrixWritableFTyperow, column column to
value.setRowColumnF in interface MatrixWritableFTyperow - The rowcolumn - The columnvalue - The valuepublic <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 void setRowWith3F(int row,
VectorReadable3FType v)
MatrixWritable3x3FTyperow of the matrix to v.setRowWith3F in interface MatrixWritable3x3FTyperow - 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 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 <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 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 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 © 2016 <code@io7m.com> http://io7m.com