|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectmath.TransformationMatrix4x4
public class TransformationMatrix4x4
a transformation matrix, which also contains the inverse matrix
Constructor Summary | |
---|---|
TransformationMatrix4x4()
constructor (fills with unit matrix) |
|
TransformationMatrix4x4(Matrix4x4 m,
Matrix4x4 im)
manually sets the matrix and its inverse |
|
TransformationMatrix4x4(TransformationMatrix4x4 tm)
|
Method Summary | |
---|---|
void |
createRotationMatrix(double alpha,
double beta,
double gamma)
creates a rotation matrix order: 1. z-rotation, 2. y-rotation, 3. x-rotation |
void |
createScaleMatrix(double sx,
double sy,
double sz)
creates a scale matrix in all directions |
void |
createTranslationMatrix(Vector3D v)
creates a translation matrix from a vector |
void |
createUnitMatrix()
creates the unit matrix |
void |
createXRotationMatrix(double alpha)
rotation around x-axis |
void |
createXScaleMatrix(double sx)
creates a scale matrix in x-direction |
void |
createYRotationMatrix(double beta)
rotation around y-axis |
void |
createYScaleMatrix(double sy)
creates a scale matrix in y-direction |
void |
createZRotationMatrix(double gamma)
rotation around z-axis |
void |
createZScaleMatrix(double sz)
creates a scale matrix in z-direction |
Matrix4x4 |
getInverseMatrix()
|
Matrix4x4 |
getMatrix()
|
void |
transform(TransformationMatrix4x4 mat)
creates a scale matrix in all directions |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public TransformationMatrix4x4()
public TransformationMatrix4x4(Matrix4x4 m, Matrix4x4 im)
m
- [in] 4x4 matrixim
- [in] 4x4 inverse matrixpublic TransformationMatrix4x4(TransformationMatrix4x4 tm)
Method Detail |
---|
public Matrix4x4 getMatrix()
public Matrix4x4 getInverseMatrix()
public void createUnitMatrix()
public void createXRotationMatrix(double alpha)
alpha
- [in] angle in radianspublic void createYRotationMatrix(double beta)
beta
- [in] angle in radianspublic void createZRotationMatrix(double gamma)
gamma
- [in] angle in radianspublic void createRotationMatrix(double alpha, double beta, double gamma)
alpha
- [in] x-angle in radiansbeta
- [in] y-angle in radiansgamma
- [in] z-angle in radianspublic void createTranslationMatrix(Vector3D v)
v
- [in] translation vectorpublic void createXScaleMatrix(double sx)
sx
- [in] scalingpublic void createYScaleMatrix(double sy)
sy
- [in] scalingpublic void createZScaleMatrix(double sz)
sz
- [in] scalingpublic void createScaleMatrix(double sx, double sy, double sz)
sx
- [in] x-scalingsy
- [in] y-scalingsz
- [in] z-scalingpublic void transform(TransformationMatrix4x4 mat)
mat
- 4x4 transformation matrix
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |