|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmath.MatrixOps
public class MatrixOps
a class for matrix operations
Constructor Summary | |
---|---|
MatrixOps()
|
Method Summary | |
---|---|
static Matrix4x4 |
mkFromQuaternion(Quaternion a)
creates a 4x4-matrix from a quaternion number |
static Matrix4x4 |
multiply(Matrix4x4 m1,
Matrix4x4 m2)
multiplication of two matrices |
static Vector |
multiply(Matrix4x4 m,
Vector v)
multiplies a matrix with a 4 vector |
static TransformationMatrix4x4 |
multiply(TransformationMatrix4x4 m1,
TransformationMatrix4x4 m2)
multiplies two transformation matrices |
static Vector |
multiply(Vector v,
Matrix4x4 m)
multiplies a matrix from left with a vector |
static Point3D |
transform(Matrix4x4 m,
Point3D p)
multiplies a matrix with a 3D point |
static Vector3D |
transform(Matrix4x4 m,
Vector3D v)
multiplies a matrix with a 3-vector |
static Matrix4x4 |
transpose(Matrix4x4 m)
returns a transposed matrix |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public MatrixOps()
Method Detail |
---|
public static Matrix4x4 multiply(Matrix4x4 m1, Matrix4x4 m2)
m1
- [in] 4x4-matrix #1m2
- [in] 4x4-matrix #2
public static Vector multiply(Matrix4x4 m, Vector v)
m
- [in] 4x4-matrixv
- [in] 4-vector
public static Point3D transform(Matrix4x4 m, Point3D p)
m
- [in] 4x4-matrixp
- [in] 3d-point
public static Vector3D transform(Matrix4x4 m, Vector3D v)
m
- [in] 4x4-matrixv
- [in] 3-vector
public static Vector multiply(Vector v, Matrix4x4 m)
v
- [in] 4-vectorm
- [in] 4x4-matrix
public static Matrix4x4 transpose(Matrix4x4 m)
m
- [in] 4x4 matrix
public static TransformationMatrix4x4 multiply(TransformationMatrix4x4 m1, TransformationMatrix4x4 m2)
m1
- [in] transformation-matrix #1m2
- [in] transformation-matrix #2
public static Matrix4x4 mkFromQuaternion(Quaternion a)
a
- [in] quaternion
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |