|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectlt.monarch.chart.chart3D.engine.vecmath.Matrix4x4
public class Matrix4x4 extends java.lang.Object implements java.io.Serializable
Represents a matrix data and all operations for it.
| Constructor and Description |
|---|
Matrix4x4()
Constructs a new instance with default attribute values. |
Matrix4x4(Matrix4x4 matrix)
Copy constructor. |
| Modifier and Type | Method and Description |
|---|---|
static Matrix4x4 |
flipAboutY()
|
double[][] |
get()
Retrieves the specified matrix data fields. |
static Matrix4x4 |
getCopy(Matrix4x4 m)
Retrieves a new instance with data fields copied. |
static Matrix4x4 |
mul_m4_m4(Matrix4x4 m1,
Matrix4x4 m2)
Multiplies two matrices. |
static Point3D |
mul_m4_v3(Matrix4x4 m,
Point3D v)
Transforms the vector. |
static Matrix4x4 |
rotationAboutX(double angle)
Retrieves a rotation matrix which rotates about x axis. |
static Matrix4x4 |
rotationAboutY(double angle)
Retrieves a rotation matrix which rotates about y axis. |
static Matrix4x4 |
rotationAboutZ(double angle)
Retrieves a rotation matrix which rotates about z axis. |
static Matrix4x4 |
rotationMatrix(Point3D normal,
double angle)
Retrieves a rotation matrix. |
static Matrix4x4 |
scaleMatrix(Point3D scale)
Retrieves a scale matrix. |
void |
setValue(int row,
int column,
double value)
Set matrix element value |
static Matrix4x4 |
translationMatrix(Point3D translation)
Retrieves a translation matrix. |
static Matrix4x4 |
unitMatrix()
Retrieves unit matrix. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Matrix4x4()
public Matrix4x4(Matrix4x4 matrix)
| Method Detail |
|---|
public double[][] get()
public static Matrix4x4 mul_m4_m4(Matrix4x4 m1,
Matrix4x4 m2)
m1 - the first matrixm2 - the second matrix
public static Point3D mul_m4_v3(Matrix4x4 m,
Point3D v)
m - a matrix to transform withv - a vector to be transformedpublic static Matrix4x4 getCopy(Matrix4x4 m)
m - the matrix which data copy will be retrievedpublic static Matrix4x4 unitMatrix()
public static Matrix4x4 scaleMatrix(Point3D scale)
scale - the scale for each axispublic static Matrix4x4 translationMatrix(Point3D translation)
translation - the translation vector
public static Matrix4x4 rotationMatrix(Point3D normal,
double angle)
normal - the normal to rotate aboutangle - the rotation anglepublic static Matrix4x4 rotationAboutX(double angle)
angle - the rotation anglepublic static Matrix4x4 rotationAboutY(double angle)
angle - the rotation anglepublic static Matrix4x4 rotationAboutZ(double angle)
angle - the rotation anglepublic static Matrix4x4 flipAboutY()
public void setValue(int row,
int column,
double value)
row - column - value -
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||