|
LEONARDI Application Composer - 8.9.0.40 by W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectleon.view.common.Ly4DMatrix
public class Ly4DMatrix
This class defines a 4x4 matrix.
Field Summary | |
---|---|
static java.lang.String |
__VERSION
|
float |
_ww
ww value. |
float |
_wx
wx value. |
float |
_wy
wy value. |
float |
_wz
wz value. |
float |
_xw
xw value. |
float |
_xx
xx value. |
float |
_xy
xy value. |
float |
_xz
xz value. |
float |
_yw
yw value. |
float |
_yx
yx value. |
float |
_yy
yy value. |
float |
_yz
yz value. |
float |
_zw
zw value. |
float |
_zx
zx value. |
float |
_zy
zy value. |
float |
_zz
zz value. |
Constructor Summary | |
---|---|
Ly4DMatrix()
Constructor. |
|
Ly4DMatrix(float xx,
float xy,
float xz,
float xw,
float yx,
float yy,
float yz,
float yw,
float zx,
float zy,
float zz,
float zw,
float wx,
float wy,
float wz,
float ww)
Constructor. |
Method Summary | |
---|---|
void |
add(Ly4DMatrix matrix)
Add the current matrix by the given matrix (this + matrix). |
Ly4DMatrix |
getMultiplicationBy(Ly4DMatrix matrix)
Returns the result of matrix multiplication (this*matrix). |
LyPoint |
getMultiplicationBy(LyPoint point)
Returns the result of matrix multiplication for the given 3D point. |
Ly4DMatrix |
getTransponize()
Returns the transponized matrix. |
void |
init()
Init method. |
void |
multiply(Ly4DMatrix matrix)
Multiply the current matrix by the given matrix (this*matrix). |
void |
rotateX(double alpha)
Rotate alpha radians about the x axis. |
void |
rotateY(double alpha)
Rotate alpha radians about the y axis. |
void |
rotateZ(double alpha)
Rotate alpha radians about the z axis. |
void |
setValues(float xx,
float xy,
float xz,
float xw,
float yx,
float yy,
float yz,
float yw,
float zx,
float zy,
float zz,
float zw,
float wx,
float wy,
float wz,
float ww)
Sets the values of the matrix. |
java.lang.String |
toString()
Returns a string representation of the matrix. |
void |
translate(float tx,
float ty,
float tz)
Translate the origin of the matrix. |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String __VERSION
public float _xx
public float _xy
public float _xz
public float _xw
public float _yx
public float _yy
public float _yz
public float _yw
public float _zx
public float _zy
public float _zz
public float _zw
public float _wx
public float _wy
public float _wz
public float _ww
Constructor Detail |
---|
public Ly4DMatrix()
public Ly4DMatrix(float xx, float xy, float xz, float xw, float yx, float yy, float yz, float yw, float zx, float zy, float zz, float zw, float wx, float wy, float wz, float ww)
xx
- xx valuexy
- xy valuexz
- xz valuexw
- xw valueyx
- yx valueyy
- yy valueyz
- yz valueyw
- yw valuezx
- zx valuezy
- zy valuezz
- zz valuezw
- zw valuewx
- wx valuewy
- wy valuewz
- wz valueww
- ww valueMethod Detail |
---|
public void init()
public void translate(float tx, float ty, float tz)
tx
- translation in xty
- translation in ytz
- translation in zpublic LyPoint getMultiplicationBy(LyPoint point)
point
- the point to transform.
public void multiply(Ly4DMatrix matrix)
matrix
- the matrix to multiply by.public void add(Ly4DMatrix matrix)
matrix
- the matrix to add.public Ly4DMatrix getMultiplicationBy(Ly4DMatrix matrix)
matrix
- the matrix to multiply by.
public Ly4DMatrix getTransponize()
public void rotateX(double alpha)
alpha
- the rotation angle in radianspublic void rotateY(double alpha)
alpha
- the rotation angle in radianspublic void rotateZ(double alpha)
alpha
- the rotation angle in radianspublic java.lang.String toString()
toString
in class java.lang.Object
public void setValues(float xx, float xy, float xz, float xw, float yx, float yy, float yz, float yw, float zx, float zy, float zz, float zw, float wx, float wy, float wz, float ww)
xx
- xx valuexy
- xy valuexz
- xz valuexw
- xw valueyx
- yx valueyy
- yy valueyz
- yz valueyw
- yw valuezx
- zx valuezy
- zy valuezz
- zz valuezw
- zw valuewx
- wx valuewy
- wy valuewz
- wz valueww
- ww value
|
(c) January 2013 - W4 S.A. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |