public final class MatrixHeapArrayM4x4D extends Object implements Matrix4x4DType
The default implementation of the Matrix4x4DType interface.
This implementation stores values in a plain on-heap array.
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
double |
getR0C0D() |
double |
getR0C1D() |
double |
getR0C2D() |
double |
getR0C3D() |
double |
getR1C0D() |
double |
getR1C1D() |
double |
getR1C2D() |
double |
getR1C3D() |
double |
getR2C0D() |
double |
getR2C1D() |
double |
getR2C2D() |
double |
getR2C3D() |
double |
getR3C0D() |
double |
getR3C1D() |
double |
getR3C2D() |
double |
getR3C3D() |
<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. |
<V extends VectorWritable3DType> |
getRow3D(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable3DType> |
getRow3DUnsafe(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable4DType> |
getRow4D(int row,
V out)
Retrieve row
row, saving the result to out. |
<V extends VectorWritable4DType> |
getRow4DUnsafe(int row,
V out)
Retrieve row
row, saving the result to out. |
double |
getRowColumnD(int row,
int column) |
int |
hashCode() |
static Matrix4x4DType |
newMatrix() |
static Matrix4x4DType |
newMatrixFrom(MatrixReadable4x4DType m) |
void |
setR0C0D(double x)
Set row 0, column 0 of the matrix to
x. |
void |
setR0C1D(double x)
Set row 0, column 1 of the matrix to
x. |
void |
setR0C2D(double x)
Set row 0, column 2 of the matrix to
x. |
void |
setR0C3D(double x)
Set row 0, column 3 of the matrix to
x. |
void |
setR1C0D(double x)
Set row 1, column 0 of the matrix to
x. |
void |
setR1C1D(double x)
Set row 1, column 1 of the matrix to
x. |
void |
setR1C2D(double x)
Set row 1, column 2 of the matrix to
x. |
void |
setR1C3D(double x)
Set row 1, column 3 of the matrix to
x. |
void |
setR2C0D(double x)
Set row 2, column 0 of the matrix to
x. |
void |
setR2C1D(double x)
Set row 2, column 1 of the matrix to
x. |
void |
setR2C2D(double x)
Set row 2, column 2 of the matrix to
x. |
void |
setR2C3D(double x)
Set row 2, column 3 of the matrix to
x. |
void |
setR3C0D(double x)
Set row 3, column 0 of the matrix to
x. |
void |
setR3C1D(double x)
Set row 3, column 1 of the matrix to
x. |
void |
setR3C2D(double x)
Set row 3, column 2 of the matrix to
x. |
void |
setR3C3D(double x)
Set row 3, column 3 of the matrix to
x. |
void |
setRow0With4D(VectorReadable4DType v)
Set row 0 to
v. |
void |
setRow1With4D(VectorReadable4DType v)
Set row 1 to
v. |
void |
setRow2With4D(VectorReadable4DType v)
Set row 2 to
v. |
void |
setRow3With4D(VectorReadable4DType v)
Set row 3 to
v. |
void |
setRowColumnD(int row,
int column,
double value)
Set the value from the matrix at row
row, column column to
value. |
void |
setRowWith2D(int row,
VectorReadable2DType v)
Set row
row of the matrix to v. |
void |
setRowWith2DUnsafe(int row,
VectorReadable2DType v)
Set row
row of the matrix to v. |
void |
setRowWith3D(int row,
VectorReadable3DType v)
Set row
row of the matrix to v. |
void |
setRowWith3DUnsafe(int row,
VectorReadable3DType v)
Set row
row of the matrix to v. |
void |
setRowWith4D(int row,
VectorReadable4DType v)
Set row
row of the matrix to v. |
void |
setRowWith4DUnsafe(int row,
VectorReadable4DType v)
Set row
row of the matrix to v. |
String |
toString() |
public static Matrix4x4DType newMatrix()
public static Matrix4x4DType newMatrixFrom(MatrixReadable4x4DType m)
m - The source matrixpublic <V extends VectorWritable4DType> void getRow4D(int row, V out)
MatrixReadable4x4DTyperow, saving the result to out.getRow4D in interface MatrixReadable4x4DTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public <V extends VectorWritable4DType> void getRow4DUnsafe(int row, V out)
MatrixReadable4x4DTyperow, saving the result to out. No bounds
checking is performed for row, and out-of-bounds values result in
undefined behaviour.getRow4DUnsafe in interface MatrixReadable4x4DTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public double getR0C3D()
getR0C3D in interface MatrixReadable4x4DTypepublic void setR0C3D(double x)
MatrixWritable4x4DTypex.setR0C3D in interface MatrixWritable4x4DTypex - The valuepublic void setRowWith4D(int row,
VectorReadable4DType v)
MatrixWritable4x4DTyperow of the matrix to v.setRowWith4D in interface MatrixWritable4x4DTyperow - The row indexv - The row vectorpublic void setRowWith4DUnsafe(int row,
VectorReadable4DType v)
MatrixWritable4x4DTyperow of the matrix to v. No bounds checking is
performed for row, and out-of-bounds values result in undefined
behaviour.setRowWith4DUnsafe in interface MatrixWritable4x4DTyperow - The row indexv - The row vectorpublic void setRow0With4D(VectorReadable4DType v)
MatrixWritable4x4DTypev.setRow0With4D in interface MatrixWritable4x4DTypev - The row vectorpublic void setRow1With4D(VectorReadable4DType v)
MatrixWritable4x4DTypev.setRow1With4D in interface MatrixWritable4x4DTypev - The row vectorpublic void setRow2With4D(VectorReadable4DType v)
MatrixWritable4x4DTypev.setRow2With4D in interface MatrixWritable4x4DTypev - The row vectorpublic void setRow3With4D(VectorReadable4DType v)
MatrixWritable4x4DTypev.setRow3With4D in interface MatrixWritable4x4DTypev - The row vectorpublic double getR1C3D()
getR1C3D in interface MatrixReadable4x4DTypepublic void setR1C3D(double x)
MatrixWritable4x4DTypex.setR1C3D in interface MatrixWritable4x4DTypex - The valuepublic double getR2C3D()
getR2C3D in interface MatrixReadable4x4DTypepublic void setR2C3D(double x)
MatrixWritable4x4DTypex.setR2C3D in interface MatrixWritable4x4DTypex - The valuepublic double getR3C0D()
getR3C0D in interface MatrixReadable4x4DTypepublic void setR3C0D(double x)
MatrixWritable4x4DTypex.setR3C0D in interface MatrixWritable4x4DTypex - The valuepublic double getR3C1D()
getR3C1D in interface MatrixReadable4x4DTypepublic void setR3C1D(double x)
MatrixWritable4x4DTypex.setR3C1D in interface MatrixWritable4x4DTypex - The valuepublic double getR3C2D()
getR3C2D in interface MatrixReadable4x4DTypepublic void setR3C2D(double x)
MatrixWritable4x4DTypex.setR3C2D in interface MatrixWritable4x4DTypex - The valuepublic double getR3C3D()
getR3C3D in interface MatrixReadable4x4DTypepublic void setR3C3D(double x)
MatrixWritable4x4DTypex.setR3C3D in interface MatrixWritable4x4DTypex - The valuepublic double getRowColumnD(int row,
int column)
getRowColumnD in interface MatrixReadableDTyperow - The rowcolumn - The columnrow , column column.public void setRowColumnD(int row,
int column,
double value)
MatrixWritableDTyperow, column column to
value.setRowColumnD in interface MatrixWritableDTyperow - The rowcolumn - The columnvalue - The valuepublic <V extends VectorWritable3DType> void getRow3D(int row, V out)
MatrixReadable3x3DTyperow, saving the result to out.getRow3D in interface MatrixReadable3x3DTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public <V extends VectorWritable3DType> void getRow3DUnsafe(int row, V out)
MatrixReadable3x3DTyperow, saving the result to out. No bounds
checking is performed for row, and out-of-bounds values result in
undefined behaviour.getRow3DUnsafe in interface MatrixReadable3x3DTypeV - The precise type of writable vector.row - The index of the row, starting at 0.out - The output vector.public double getR0C2D()
getR0C2D in interface MatrixReadable3x3DTypepublic void setR0C2D(double x)
MatrixWritable3x3DTypex.setR0C2D in interface MatrixWritable3x3DTypex - The valuepublic void setRowWith3D(int row,
VectorReadable3DType v)
MatrixWritable3x3DTyperow of the matrix to v.setRowWith3D in interface MatrixWritable3x3DTyperow - The row indexv - The row vectorpublic void setRowWith3DUnsafe(int row,
VectorReadable3DType v)
MatrixWritable3x3DTyperow of the matrix to v. No bounds checking is
performed for row, and out-of-bounds values result in undefined
behaviour.setRowWith3DUnsafe in interface MatrixWritable3x3DTyperow - The row indexv - The row vectorpublic double getR1C2D()
getR1C2D in interface MatrixReadable3x3DTypepublic void setR1C2D(double x)
MatrixWritable3x3DTypex.setR1C2D in interface MatrixWritable3x3DTypex - The valuepublic double getR2C0D()
getR2C0D in interface MatrixReadable3x3DTypepublic void setR2C0D(double x)
MatrixWritable3x3DTypex.setR2C0D in interface MatrixWritable3x3DTypex - The valuepublic double getR2C1D()
getR2C1D in interface MatrixReadable3x3DTypepublic void setR2C1D(double x)
MatrixWritable3x3DTypex.setR2C1D in interface MatrixWritable3x3DTypex - The valuepublic double getR2C2D()
getR2C2D in interface MatrixReadable3x3DTypepublic void setR2C2D(double x)
MatrixWritable3x3DTypex.setR2C2D in interface MatrixWritable3x3DTypex - The valuepublic <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 void setR0C0D(double x)
MatrixWritable2x2DTypex.setR0C0D in interface MatrixWritable2x2DTypex - The valuepublic void setRowWith2D(int row,
VectorReadable2DType v)
MatrixWritable2x2DTyperow of the matrix to v.setRowWith2D in interface MatrixWritable2x2DTyperow - The row indexv - The row vectorpublic void setRowWith2DUnsafe(int row,
VectorReadable2DType v)
MatrixWritable2x2DTyperow of the matrix to v. No bounds checking is
performed for row, and out-of-bounds values result in undefined
behaviour.setRowWith2DUnsafe in interface MatrixWritable2x2DTyperow - The row indexv - The row vectorpublic double getR1C0D()
getR1C0D in interface MatrixReadable2x2DTypepublic void setR1C0D(double x)
MatrixWritable2x2DTypex.setR1C0D in interface MatrixWritable2x2DTypex - The valuepublic double getR0C1D()
getR0C1D in interface MatrixReadable2x2DTypepublic void setR0C1D(double x)
MatrixWritable2x2DTypex.setR0C1D in interface MatrixWritable2x2DTypex - The valuepublic double getR1C1D()
getR1C1D in interface MatrixReadable2x2DTypepublic void setR1C1D(double x)
MatrixWritable2x2DTypex.setR1C1D in interface MatrixWritable2x2DTypex - The valueCopyright © 2015 <code@io7m.com> http://io7m.com