Represent a 3D Matrix that can be used with OpenGL.
More...
|
| Matrix3 () |
| Constructs a matrix with the identity. More...
|
|
float[] | getMatrix () |
| Returns the float's array representing the matrix in the form: More...
|
|
void | setIdentity () |
| Sets the identity for this matrix.
|
|
void | translate (float x, float y, float z) |
| Translates with the given parameters. More...
|
|
void | postMultiply (float matrix[]) |
| Postmultiplies the current matrix with the given one. More...
|
|
void | pareMultiply (float matrix[]) |
| Premultiplies the current matrix with the given one. More...
|
|
void | scale (float x, float y, float z) |
| Scales the matrix with the given factors. More...
|
|
void | rotate (float x, float y, float z) |
| Rotates the matrix with the given rotations (in radians) More...
|
|
void | set (float[] matrix) |
|
void | transform (Point3 p) |
|
Represent a 3D Matrix that can be used with OpenGL.
It has functions to rotate, scale and translate
com.beyondar.android.util.math.geom.Matrix3.Matrix3 |
( |
| ) |
|
Constructs a matrix with the identity.
float [] com.beyondar.android.util.math.geom.Matrix3.getMatrix |
( |
| ) |
|
Returns the float's array representing the matrix in the form:
- Returns
- the float's array representing the matrix
void com.beyondar.android.util.math.geom.Matrix3.pareMultiply |
( |
float |
matrix[] | ) |
|
Premultiplies the current matrix with the given one.
- Parameters
-
matrix | matrix to premultiply |
void com.beyondar.android.util.math.geom.Matrix3.postMultiply |
( |
float |
matrix[] | ) |
|
Postmultiplies the current matrix with the given one.
- Parameters
-
matrix | matrix to postmultiply |
void com.beyondar.android.util.math.geom.Matrix3.rotate |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
Rotates the matrix with the given rotations (in radians)
- Parameters
-
x | rotation in x axis |
y | rotation in y axis |
z | rotation in z axis |
void com.beyondar.android.util.math.geom.Matrix3.scale |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
Scales the matrix with the given factors.
- Parameters
-
x | scale in x axis |
y | scale in y axis |
z | scale in z axis |
void com.beyondar.android.util.math.geom.Matrix3.translate |
( |
float |
x, |
|
|
float |
y, |
|
|
float |
z |
|
) |
| |
Translates with the given parameters.
- Parameters
-
x | translation in x axis |
y | translation in y axis |
z | translation in z axis |
The documentation for this class was generated from the following file:
- src/com/beyondar/android/util/math/geom/Matrix3.java