|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.ObjectMatrix4
public class Matrix4
Field Summary | |
---|---|
float |
a11
The matrix coefficients. |
float |
a12
The matrix coefficients. |
float |
a13
The matrix coefficients. |
float |
a14
The matrix coefficients. |
float |
a21
The matrix coefficients. |
float |
a22
The matrix coefficients. |
float |
a23
The matrix coefficients. |
float |
a24
The matrix coefficients. |
float |
a31
The matrix coefficients. |
float |
a32
The matrix coefficients. |
float |
a33
The matrix coefficients. |
float |
a34
The matrix coefficients. |
float |
a41
The matrix coefficients. |
float |
a42
The matrix coefficients. |
float |
a43
The matrix coefficients. |
float |
a44
The matrix coefficients. |
Constructor Summary | |
---|---|
Matrix4()
Default constructor, yields indentity matrix |
|
Matrix4(Matrix4 m)
Matrix copy constructor, copies an existing matrix |
Method Summary | |
---|---|
static Matrix4 |
getRotateXInstance(float theta)
Factory method to create a transformation matrix for rotation around X |
static Matrix4 |
getRotateYInstance(float theta)
Factory method to create a transformation matrix for rotation around Y |
static Matrix4 |
getRotateZInstance(float theta)
Factory method to create a transformation matrix for rotation around Z |
Matrix4 |
getRotMatrix(float phi,
float theta,
float sigma)
Rotating matrix |
static Matrix4 |
getScaleInstance(float s)
Factory method to create a transformation matrix for uniform scaling |
static Matrix4 |
getScaleInstance(float sx,
float sy,
float sz)
Factory method to create a transformation matrix for non-uniform scaling |
static void |
getTranslateInstance(Matrix4 m,
float tx,
float ty,
float tz)
Factory method to create a transformation matrix for translation |
void |
mult(Matrix4 m2)
Matrix multiply two matrices |
static Matrix4 |
mult(Matrix4 m1,
Matrix4 m2)
Matrix multiply two matrices |
static void |
mult(Matrix4 m,
Vector4 v)
|
void |
set(Matrix4 m)
Copy the coefficient vaules from another matrix |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public float a11
aij
is at row i, column j.
public float a12
aij
is at row i, column j.
public float a13
aij
is at row i, column j.
public float a14
aij
is at row i, column j.
public float a21
aij
is at row i, column j.
public float a22
aij
is at row i, column j.
public float a23
aij
is at row i, column j.
public float a24
aij
is at row i, column j.
public float a31
aij
is at row i, column j.
public float a32
aij
is at row i, column j.
public float a33
aij
is at row i, column j.
public float a34
aij
is at row i, column j.
public float a41
aij
is at row i, column j.
public float a42
aij
is at row i, column j.
public float a43
aij
is at row i, column j.
public float a44
aij
is at row i, column j.
Constructor Detail |
---|
public Matrix4()
public Matrix4(Matrix4 m)
Method Detail |
---|
public static Matrix4 getRotateXInstance(float theta)
theta
- The rotation angle
public static Matrix4 getRotateYInstance(float theta)
theta
- The rotation angle
public static Matrix4 getRotateZInstance(float theta)
theta
- The rotation angle
public static void getTranslateInstance(Matrix4 m, float tx, float ty, float tz)
tx
- The translation along the x dimensionty
- The translation along the y dimensiontz
- The translation along the z dimensionpublic static Matrix4 getScaleInstance(float s)
s
- The scaling factor
public static Matrix4 getScaleInstance(float sx, float sy, float sz)
sx
- The scaling factor along the x dimensionsy
- The scaling factor along the y dimensionsz
- The scaling factor along the z dimension
public void set(Matrix4 m)
m
- The matrix to copypublic Matrix4 getRotMatrix(float phi, float theta, float sigma)
m1
- The first (left) matrix for the multiplicationm2
- The second (middle) matrix for the multiplicationm3
- The third (right) matrix for the multiplication
public static void mult(Matrix4 m, Vector4 v)
public static Matrix4 mult(Matrix4 m1, Matrix4 m2)
m1
- The first (left) matrix for the multiplicationm2
- The second (right) matrix for the multiplication
public void mult(Matrix4 m2)
m2
- The second (right) matrix for the multiplication
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |