|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.bramosystems.oss.player.core.client.geom.MatrixUtil
public class MatrixUtil
Utility class to perform various matrix calculations
Constructor Summary | |
---|---|
MatrixUtil()
|
Method Summary | |
---|---|
static Matrix2D |
add(Matrix2D m,
Matrix2D n)
Returns the addition of matrices m and n |
static Matrix3D |
add(Matrix3D m,
Matrix3D n)
Returns the addition of matrices m and n |
static double |
getDeterminant(Matrix2D m)
Returns the determinant of matrix m |
static double |
getTrace(Matrix2D m)
Returns the trace of matrix m |
static Matrix2D |
invert(Matrix2D m)
Performs a matrix inversion |
static Matrix2D |
multiply(Matrix2D m,
Matrix2D n)
Multiplies matrix m by matrix n . |
static Vector |
multiply(Matrix2D m,
Vector n)
Multiplies matrix m by vector n . |
static Matrix3D |
multiply(Matrix3D m,
Matrix3D n)
Multiplies matrix m by matrix n . |
static Vector3D |
multiply(Matrix3D m,
Vector3D n)
Multiplies matrix m by vector n . |
static Matrix2D |
toCofactor(Matrix2D m)
Calculates the cofactors of matrix m |
static Matrix2D |
toTranspose(Matrix2D m)
Returns the transpose matrix of matrix m |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatrixUtil()
Method Detail |
---|
public static Matrix3D multiply(Matrix3D m, Matrix3D n)
m
by matrix n
. The returned value
is calculated as:
x = M x N
m
- the first matrixn
- the second matrix
public static Vector3D multiply(Matrix3D m, Vector3D n)
m
by vector n
. The returned value
is calculated as:
x = M x N
m
- the matrixn
- the vector
public static Matrix2D multiply(Matrix2D m, Matrix2D n)
m
by matrix n
. The returned value
is calculated as:
x = M x N
m
- the first matrixn
- the second matrix
public static Vector multiply(Matrix2D m, Vector n)
m
by vector n
. The returned value
is calculated as:
x = M x N
m
- the matrixn
- the vector
public static Matrix2D add(Matrix2D m, Matrix2D n)
m
and n
m
- the first matrixn
- the second matrix
public static Matrix3D add(Matrix3D m, Matrix3D n)
m
and n
m
- the first matrixn
- the second matrix
public static double getDeterminant(Matrix2D m)
m
m
- the matrix
public static double getTrace(Matrix2D m)
m
m
- the matrix
public static Matrix2D toTranspose(Matrix2D m)
m
m
- the matrix
public static Matrix2D toCofactor(Matrix2D m)
m
m
- the matrix
public static Matrix2D invert(Matrix2D m)
m
- the matrix to be inverted
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |