|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--com.vodafone.v10.graphics.j3d.AffineTrans
The affine transform class.
Field Summary | |
int |
m00
The first element of the first row. |
int |
m01
The second element of the first row. |
int |
m02
The third element of the first row. |
int |
m03
The fourth element of the first row. |
int |
m10
The first element of the second row. |
int |
m11
The second element of the second row. |
int |
m12
The third element of the second row. |
int |
m13
The fourth element of the second row. |
int |
m20
The first element of the third row. |
int |
m21
The second element of the third row. |
int |
m22
The third element of the third row. |
int |
m23
The fourth element of the third row. |
Constructor Summary | |
AffineTrans()
AffineTrans constructor |
|
AffineTrans(int[][] m)
AffineTrans constructor |
Method Summary | |
void |
multiply(AffineTrans t)
Performs multiplication Multiplies this by t and sets the result in itself. |
void |
multiply(AffineTrans t1,
AffineTrans t2)
Perform multiplication Multiplies t1 by t2 and sets the result in itself. |
void |
rotationV(Vector3D vec,
int a)
Rotates on an axis. |
void |
rotationX(int a)
Rotates on X-axis from Y-axis toward Z-axis. |
void |
rotationY(int a)
Rotates on Y-axis from Z-axis toward X-axis. |
void |
rotationZ(int a)
Rotates on Z-axis from X-axis toward Y-axis. |
void |
set(int[][] m)
Sets new array data. |
void |
setViewTrans(Vector3D position,
Vector3D look,
Vector3D up)
Sets the transform to view coordinates. |
Vector3D |
transPoint(Vector3D src)
Transforms a point. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public int m00
public int m01
public int m02
public int m03
public int m10
public int m11
public int m12
public int m13
public int m20
public int m21
public int m22
public int m23
Constructor Detail |
public AffineTrans()
public AffineTrans(int[][] m)
m
- A 3-row, 4-column arrayIllegalArgumentException
- if not a 3-row, 4-column array.NullPointerException
- if the designated array is null.Method Detail |
public void set(int[][] m)
m
- A 3-row, 4-column arrayIllegalArgumentException
- if not a 3-row, 4-column array.NullPointerException
- if the designated array is null.public Vector3D transPoint(Vector3D src)
src
- The original dataNullPointerException
- if src is null.IllegalStateException
- if called during sprite execution.public void multiply(AffineTrans t)
t
- MultiplicandNullPointerException
- if t is null.IllegalStateException
- if called during sprite execution.public void multiply(AffineTrans t1, AffineTrans t2)
t1
- Multiplicandt2
- MultiplicandNullPointerException
- if t1 or t2 is null.IllegalStateException
- if called during sprite execution.public void rotationX(int a)
a
- Angle (4096 segments)IllegalStateException
- if called during sprite execution.public void rotationY(int a)
a
- Angle (4096 segments)IllegalStateException
- if called during sprite execution.public void rotationZ(int a)
a
- Angle (4096 segments)IllegalStateException
- if called during sprite execution.public void rotationV(Vector3D vec, int a)
vec
- Rotational axisa
- Angle (4096 segments)IllegalStateException
- if called during sprite execution.NullPointerException
- if vec is null.public void setViewTrans(Vector3D position, Vector3D look, Vector3D up)
position
- View positionlook
- View directionup
- Upward directionNullPointerException
- if any of position, look, or up is null.IllegalArgumentException
- if look or up is 0 vector, or if look and up are
parallel to each otherIllegalStateException
- if called during sprite execution.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |