|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.java.joglutils.msg.math.Mat3f
public class Mat3f
3x3 matrix class useful for simple linear algebra. Representation is (as Mat4f) in row major order and assumes multiplication by column vectors on the right.
Constructor Summary | |
---|---|
Mat3f()
Creates new matrix initialized to the zero matrix |
Method Summary | |
---|---|
float |
determinant()
Return the determinant. |
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 |
void |
invert()
Full matrix inversion in place. |
void |
makeIdent()
Initialize to the identity matrix. |
Mat3f |
mul(Mat3f b)
Returns this * b; creates new matrix |
void |
mul(Mat3f a,
Mat3f b)
this = a * b |
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 |
void |
setCol(int i,
Vec3f v)
Set column i (i=[0..2]) to vector v. |
void |
setRow(int i,
Vec3f v)
Set row i (i=[0..2]) to vector v. |
Matf |
toMatf()
|
String |
toString()
|
void |
transpose()
Transpose this matrix in place. |
void |
xformVec(Vec3f src,
Vec3f dest)
Multiply a 3D vector by this matrix. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Mat3f()
Method Detail |
---|
public void makeIdent()
public float get(int i, int j)
public void set(int i, int j, float val)
public void setCol(int i, Vec3f v)
public void setRow(int i, Vec3f v)
public void transpose()
public float determinant()
public void invert() throws SingularMatrixException
SingularMatrixException
public void xformVec(Vec3f src, Vec3f dest)
public Mat3f mul(Mat3f b)
public void mul(Mat3f a, Mat3f b)
public Matf toMatf()
public String toString()
toString
in class Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |