Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
172
11.17.4.16 MML_GDC_2D_MATRIX_API void utMat3x3RotX ( Mat3x3 m, MM_FLOAT f )
Rotate a 3x3-matrix around the X-axis.
Parameters
in,out
m
The input/output matrix.
in
f
The rotation angle (in radians).
11.17.4.17 MML_GDC_2D_MATRIX_API void utMat3x3RotZ ( Mat3x3 m, MM_FLOAT f )
Rotate a 3x3-matrix around the Z-axis.
Parameters
in,out
m
The input/output matrix.
in
f
The rotation angle (in radians).
11.17.4.18 MML_GDC_2D_MATRIX_API void utMat3x3Scale ( Mat3x3 m, MM_FLOAT x,
MM_FLOAT y )
Modify a 3x3-matrix to realize a scale operation. The resulting matrix represents m = m
∗
m_scale.
Parameters
in,out
m
The matrix to modify.
in
x
Scale factor in x direction.
in
y
Scale factor in y direction.
11.17.4.19 MML_GDC_2D_MATRIX_API void utMat3x3ToMat4x4 ( Mat3x3 src, Mat4x4 dst )
Convert a 3x3-matrix to a 4x4-matrix.
Parameters
out
dst
The destination matrix.
in
src
The source matrix.
11.17.4.20 MML_GDC_2D_MATRIX_API void utMat3x3Translate ( Mat3x3 m, MM_FLOAT x,
MM_FLOAT y )
Modify a 3x3-matrix to realize a move operation. The resulting matrix represents m = m
∗
m_trans.
Parameters
in,out
m
The matrix to modify.
in
x
Move dimension in x direction.
in
y
Move dimension in y direction.