Fork me
BeyondAR
Augmented Reality Framework for Android
 All Classes Functions Variables
com.beyondar.android.util.math.geom.Matrix3 Class Reference

Represent a 3D Matrix that can be used with OpenGL. More...

Public Member Functions

 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)
 

Detailed Description

Represent a 3D Matrix that can be used with OpenGL.

It has functions to rotate, scale and translate

Constructor & Destructor Documentation

com.beyondar.android.util.math.geom.Matrix3.Matrix3 ( )

Constructs a matrix with the identity.

Member Function Documentation

float [] com.beyondar.android.util.math.geom.Matrix3.getMatrix ( )

Returns the float's array representing the matrix in the form:

[ m0 m4 m8 m12 ]
[ m1 m5 m9 m13 ]
[ m2 m6 m10 m14 ]
[ m3 m7 m11 m15 ]
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
matrixmatrix to premultiply
void com.beyondar.android.util.math.geom.Matrix3.postMultiply ( float  matrix[])

Postmultiplies the current matrix with the given one.

Parameters
matrixmatrix to postmultiply

Here is the caller graph for this function:

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
xrotation in x axis
yrotation in y axis
zrotation in z axis

Here is the call graph for this function:

void com.beyondar.android.util.math.geom.Matrix3.scale ( float  x,
float  y,
float  z 
)

Scales the matrix with the given factors.

Parameters
xscale in x axis
yscale in y axis
zscale in z axis

Here is the call graph for this function:

void com.beyondar.android.util.math.geom.Matrix3.translate ( float  x,
float  y,
float  z 
)

Translates with the given parameters.

Parameters
xtranslation in x axis
ytranslation in y axis
ztranslation in z axis

Here is the call graph for this function:


The documentation for this class was generated from the following file: