|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object multigraph.Matrix3x3
This class represents a 3x3 matrix, with a few operations that are commonly needed in 2D computer graphics applications.
R3Vector
Field Summary | |
double[][] |
M
A 3x3 array that actually holds the matrix |
Constructor Summary | |
Matrix3x3()
Create a new Matrix3x3 ; the newly created
matrix is not necessarily initialized to anything. |
Method Summary | |
void |
copyFrom(Matrix3x3 src)
Copy the contents of a matrix to this one. |
void |
identity()
Set this matrix to the identity. |
static Matrix3x3 |
Identity()
Return a new matrix initialized to the identity matrix. |
Matrix3x3 |
inverse()
Return a new matrix which is the inverse of this one. |
static Matrix3x3 |
multiply(Matrix3x3 A,
Matrix3x3 B)
Multiply two matrices A and B, returning a new matrix which is the product A*B. |
R3Vector |
multiply(R3Vector v)
Multiply a vector v by this matrix (on the left), returning the resulting vector this*v. |
java.lang.String |
toString()
Return a string representation of this matrix. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public double[][] M
Constructor Detail |
public Matrix3x3()
Matrix3x3
; the newly created
matrix is not necessarily initialized to anything.
Method Detail |
public static Matrix3x3 Identity()
public void identity()
public static Matrix3x3 multiply(Matrix3x3 A, Matrix3x3 B)
public void copyFrom(Matrix3x3 src)
public Matrix3x3 inverse()
public R3Vector multiply(R3Vector v)
public java.lang.String toString()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |