Data Structures | Typedefs | Functions
Matrices in floating point

Matrix definition and operations. More...

Data Structures

struct  _Eina_Matrix4
 

Typedefs

typedef struct _Eina_Matrix4 Eina_Matrix4
 

Functions

EAPI Eina_Matrix_Type eina_matrix4_type_get (const Eina_Matrix4 *m)
 Return the type of the given floating point matrix. More...
 
EAPI void eina_matrix4_values_set (Eina_Matrix4 *m, double xx, double xy, double xz, double xw, double yx, double yy, double yz, double yw, double zx, double zy, double zz, double zw, double wx, double wy, double wz, double ww)
 Set the values of the coefficients of the given floating point matrix. More...
 
EAPI void eina_matrix4_values_get (const Eina_Matrix4 *m, double *xx, double *xy, double *xz, double *xw, double *yx, double *yy, double *yz, double *yw, double *zx, double *zy, double *zz, double *zw, double *wx, double *wy, double *wz, double *ww)
 Get the values of the coefficients of the given floating point matrix. More...
 
EAPI void eina_matrix4_matrix3_to (Eina_Matrix3 *m3, const Eina_Matrix4 *m4)
 Convert an Eina_Matrix4 into an Eina_Matrix3. More...
 
EAPI void eina_matrix3_matrix4_to (Eina_Matrix4 *m4, const Eina_Matrix3 *m3)
 Convert an Eina_Matrix3 into an Eina_Matrix4. More...
 

Detailed Description

Matrix definition and operations.

Function Documentation

EAPI Eina_Matrix_Type eina_matrix4_type_get ( const Eina_Matrix4 m)

Return the type of the given floating point matrix.

Parameters
mThe floating point matrix.
Returns
The type of the matrix.

This function returns the type of the matrix m. No check is done on m.

Since
1.15

References EINA_MATRIX_TYPE_AFFINE, and EINA_MATRIX_TYPE_IDENTITY.

EAPI void eina_matrix4_values_set ( Eina_Matrix4 m,
double  xx,
double  xy,
double  xz,
double  xw,
double  yx,
double  yy,
double  yz,
double  yw,
double  zx,
double  zy,
double  zz,
double  zw,
double  wx,
double  wy,
double  wz,
double  ww 
)

Set the values of the coefficients of the given floating point matrix.

Parameters
mThe floating point matrix.
xxThe first coefficient value.
xyThe second coefficient value.
xzThe third coefficient value.
xwThe fourth coefficient value.
yxThe fifth coefficient value.
yyThe sixth coefficient value.
yzThe seventh coefficient value.
ywThe heighth coefficient value.
zxThe nineth coefficient value.
zyThe tenth coefficient value.
zzThe eleventh coefficient value.
zwThe twelfth coefficient value.
wxThe thirteenth coefficient value.
wyThe fourteenth coefficient value.
wzThe fifteenth coefficient value.
wwThe sizteenth coefficient value.

This function sets the values of the coefficients of the matrix m. No check is done on m.

See also
eina_matrix4_values_get()
Since
1.15
EAPI void eina_matrix4_values_get ( const Eina_Matrix4 m,
double *  xx,
double *  xy,
double *  xz,
double *  xw,
double *  yx,
double *  yy,
double *  yz,
double *  yw,
double *  zx,
double *  zy,
double *  zz,
double *  zw,
double *  wx,
double *  wy,
double *  wz,
double *  ww 
)

Get the values of the coefficients of the given floating point matrix.

Parameters
mThe floating point matrix.
xxThe first coefficient value.
xyThe second coefficient value.
xzThe third coefficient value.
xwThe fourth coefficient value.
yxThe fifth coefficient value.
yyThe sixth coefficient value.
yzThe seventh coefficient value.
ywThe heighth coefficient value.
zxThe nineth coefficient value.
zyThe tenth coefficient value.
zzThe eleventh coefficient value.
zwThe twelfth coefficient value.
wxThe thirteenth coefficient value.
wyThe fourteenth coefficient value.
wzThe fifteenth coefficient value.
wwThe sizteenth coefficient value.

This function gets the values of the coefficients of the matrix m. No check is done on m.

See also
eina_matrix4_values_set()
Since
1.15
EAPI void eina_matrix4_matrix3_to ( Eina_Matrix3 m3,
const Eina_Matrix4 m4 
)

Convert an Eina_Matrix4 into an Eina_Matrix3.

Parameters
m3The destination Eina_Matrix3.
m4The source Eina_Matrix4.
Since
1.15
EAPI void eina_matrix3_matrix4_to ( Eina_Matrix4 m4,
const Eina_Matrix3 m3 
)

Convert an Eina_Matrix3 into an Eina_Matrix4.

Parameters
m3The destination Eina_Matrix3.
m4The source Eina_Matrix4.
Since
1.15