public class MatrixUtil extends Object
Constructor and Description |
---|
MatrixUtil() |
Modifier and Type | Method and Description |
---|---|
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 |
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 matrixpublic 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 vectorpublic 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 matrixpublic 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 vectorpublic static Matrix2D add(Matrix2D m, Matrix2D n)
m
and n
m
- the first matrixn
- the second matrixpublic static Matrix3D add(Matrix3D m, Matrix3D n)
m
and n
m
- the first matrixn
- the second matrixpublic static double getDeterminant(Matrix2D m)
m
m
- the matrixpublic static double getTrace(Matrix2D m)
m
m
- the matrixpublic static Matrix2D toTranspose(Matrix2D m)
m
m
- the matrixpublic static Matrix2D toCofactor(Matrix2D m)
m
m
- the matrixCopyright © 2009-2013. All Rights Reserved.