|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.math.Matf
public class Matf
Arbitrary-size single-precision matrix class. Currently very simple and only supports a few needed operations.
Constructor Summary | |
---|---|
Matf(int nRow,
int nCol)
|
|
Matf(Matf arg)
|
Method Summary | |
---|---|
float |
get(int i,
int j)
Gets the (i,j)th element of this matrix, where i is the row index and j is the column index |
Matf |
mul(Matf b)
Returns this * b; creates new matrix |
Vecf |
mul(Vecf v)
Returns this * v, assuming v is a column vector. |
int |
nCol()
|
int |
nRow()
|
void |
set(int i,
int j,
float val)
Sets the (i,j)th element of this matrix, where i is the row index and j is the column index |
Mat2f |
toMat2f()
If this is a 2x2 matrix, returns it as a Mat2f. |
Mat3f |
toMat3f()
If this is a 3x3 matrix, returns it as a Mat3f. |
Mat4f |
toMat4f()
If this is a 4x4 matrix, returns it as a Mat4f. |
Matf |
transpose()
Returns transpose of this matrix; creates new matrix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Matf(int nRow, int nCol)
public Matf(Matf arg)
Method Detail |
---|
public int nRow()
public int nCol()
public float get(int i, int j)
public void set(int i, int j, float val)
public Matf transpose()
public Matf mul(Matf b) throws DimensionMismatchException
DimensionMismatchException
public Vecf mul(Vecf v) throws DimensionMismatchException
DimensionMismatchException
public Mat2f toMat2f() throws DimensionMismatchException
DimensionMismatchException
public Mat3f toMat3f() throws DimensionMismatchException
DimensionMismatchException
public Mat4f toMat4f() throws DimensionMismatchException
DimensionMismatchException
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |