File Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
248
13.16
pe_matrix.h File Reference
Provide some matrix utility functions.
#include "mm_types.h"
Macros
#define MML_GDC_2D_MATRIX_API extern
Typedefs
typedef MM_FLOAT Mat3x2 [6]
typedef MM_FLOAT Mat3x3 [9]
typedef MM_FLOAT Mat4x4 [16]
typedef MM_FLOAT Mat4x3 [12]
typedef MM_FLOAT Mat5x4 [20]
Functions
Matrix functions for geometric operations
MML_GDC_2D_MATRIX_API void utMat3x2Copy (Mat3x2 dst, const Mat3x2 src)
MML_GDC_2D_MATRIX_API void utMat3x2Multiply (Mat3x2 dst, const Mat3x2 src1, const Mat3x2 src2)
MML_GDC_2D_MATRIX_API void utMat3x2LoadIdentity (Mat3x2 m)
MML_GDC_2D_MATRIX_API void utMat3x2Translate (Mat3x2 m, MM_FLOAT x, MM_FLOAT y)
MML_GDC_2D_MATRIX_API void utMat3x2TranslatePre (Mat3x2 m, MM_FLOAT x, MM_FLOAT y)
MML_GDC_2D_MATRIX_API void utMat3x2Scale (Mat3x2 m, MM_FLOAT x, MM_FLOAT y)
MML_GDC_2D_MATRIX_API void utMat3x2ScalePre (Mat3x2 m, MM_FLOAT x, MM_FLOAT y)
MML_GDC_2D_MATRIX_API void utMat3x2Rot (Mat3x2 m, MM_FLOAT f)
MML_GDC_2D_MATRIX_API void utMat3x2RotPre (Mat3x2 m, MM_FLOAT f)
MML_GDC_2D_MATRIX_API MM_U32 utMat3x2Invert (Mat3x2 m)
MML_GDC_2D_MATRIX_API void utMat3x2GetXY (const Mat3x2 m, const MM_FLOAT x, const MM_FLOAT y,
MM_FLOAT
∗
xout, MM_FLOAT
∗
yout)
MML_GDC_2D_MATRIX_API void utMat3x3LoadIdentity (Mat3x3 m)
MML_GDC_2D_MATRIX_API void utMat3x3Copy (Mat3x3 dst, const Mat3x3 src)
MML_GDC_2D_MATRIX_API void utMat3x3Multiply (Mat3x3 dst, const Mat3x3 src1, const Mat3x3 src2)
MML_GDC_2D_MATRIX_API void utMat3x3Translate (Mat3x3 m, MM_FLOAT x, MM_FLOAT y)
MML_GDC_2D_MATRIX_API void utMat3x3TranslatePre (Mat3x3 m, MM_FLOAT x, MM_FLOAT y)
MML_GDC_2D_MATRIX_API void utMat3x3Scale (Mat3x3 m, MM_FLOAT x, MM_FLOAT y)
MML_GDC_2D_MATRIX_API void utMat3x3RotX (Mat3x3 m, MM_FLOAT f)
MML_GDC_2D_MATRIX_API void utMat3x3RotZ (Mat3x3 m, MM_FLOAT f)
MML_GDC_2D_MATRIX_API void utMat4x4Copy (Mat4x4 dst, const Mat4x4 src)
MML_GDC_2D_MATRIX_API void utMat4x4Multiply (Mat4x4 dst, const Mat4x4 src1, const Mat4x4 src2)
MML_GDC_2D_MATRIX_API void utMat4x4LoadIdentity (Mat4x4 m)
MML_GDC_2D_MATRIX_API void utMat4x4Translate (Mat4x4 m, MM_FLOAT x, MM_FLOAT y,
MM_FLOAT z)
MML_GDC_2D_MATRIX_API void utMat4x4Scale (Mat4x4 m, MM_FLOAT x, MM_FLOAT y, MM_FLOATz)