|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.microedition.m3g.Transform
A generic 4x4 floating point matrix, representing a transformation. By default, all methods dealing with Transform objects operate on arbitrary 4x4 matrices. Any exceptions to this rule are documented explicitly at the method level.
Constructor Summary | |
Transform()
Constructs a new Transform object and initializes it to the 4x4 identity matrix. |
|
Transform(Transform transform)
Constructs a new Transform object and initializes it by copying in the contents of the given Transform. |
Method Summary | |
void |
get(float[] matrix)
Retrieves the contents of this transformation as a 16-element float array. |
void |
invert()
Inverts this matrix, if possible. |
void |
postMultiply(Transform transform)
Multiplies this transformation from the right by the given transformation. |
void |
postRotate(float angle,
float x,
float y,
float z)
Multiplies this transformation from the right by the given rotation matrix, specified in axis-angle form. |
void |
postRotateQuat(float x,
float y,
float z,
float w)
Multiplies this transformation from the right by the given rotation matrix, specified in quaternion form. |
void |
postScale(float sx,
float sy,
float sz)
Multiplies this transformation from the right by the given scale matrix |
void |
postTranslate(float tx,
float ty,
float tz)
Multiplies this transformation from the right by the given translation matrix. |
void |
set(float[] matrix)
Sets this transformation by copying from the given 16-element float array. |
void |
set(Transform transform)
Sets this transformation by copying the contents of the given Transform |
void |
setIdentity()
Replaces this transformation with the 4x4 identity matrix. |
void |
transform(float[] vectors)
Multiplies the given array of 4D vectors with this matrix. |
void |
transform(VertexArray in,
float[] out,
boolean W)
Multiplies the elements of the given VertexArray with this matrix, storing the transformed values in a float array. |
void |
transpose()
Transposes this matrix. |
Methods inherited from class java.lang.Object |
clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Transform()
public Transform(Transform transform)
Method Detail |
public void setIdentity()
public void set(Transform transform)
public void set(float[] matrix)
public void get(float[] matrix)
public void invert()
public void transpose()
public void postMultiply(Transform transform)
public void postScale(float sx, float sy, float sz)
public void postRotate(float angle, float x, float y, float z)
public void postRotateQuat(float x, float y, float z, float w)
public void postTranslate(float tx, float ty, float tz)
public void transform(VertexArray in, float[] out, boolean W)
public void transform(float[] vectors)
|
BenQ Mobile |
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2006 BenQ Mobile GmbH & Co. OHG or respective copyright owner. All Rights Reserved. BenQ Corp. is a trademark licensee of Siemens AG. |
For further information about Mobility Toolkit (MTK) visit our Developer Portal. |