Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
170
11.17.4.4 MML_GDC_2D_MATRIX_API void utMat3x2LoadIdentity ( Mat3x2 m )
Reset the matrix content to a unit matrix.
Parameters
in,out
m
The matrix to modify.
11.17.4.5 MML_GDC_2D_MATRIX_API void utMat3x2Multiply ( Mat3x2 dst, const Mat3x2 src1, const
Mat3x2 src2 )
Multiply 2 matrices. The resulting matrix represents dst = src1
∗
src2.
Parameters
out
dst
The destination matrix.
in
src1
The first source matrix.
in
src2
The second source matrix.
11.17.4.6 MML_GDC_2D_MATRIX_API void utMat3x2Rot ( Mat3x2 m, MM_FLOAT f )
Modify a matrix to realize a rotation. The resulting matrix represents m = m
∗
m_rot.
Parameters
in,out
m
The matrix to modify.
in
f
Rotation angle in degrees.
11.17.4.7 MML_GDC_2D_MATRIX_API void utMat3x2RotPre ( Mat3x2 m, MM_FLOAT f )
Modify a matrix by pre-multiplying a rotation matrix. The resulting matrix represents m = m_rot
∗
m.
Parameters
in,out
m
The matrix to modify.
in
f
Rotation angle in degrees.
11.17.4.8 MML_GDC_2D_MATRIX_API void utMat3x2Scale ( Mat3x2 m, MM_FLOAT x, MM_FLOAT
y )
Modify a 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.9 MML_GDC_2D_MATRIX_API void utMat3x2ScalePre ( Mat3x2 m, MM_FLOAT x,
MM_FLOAT y )
Modify a matrix by pre-multiplying a scale matrix. The resulting matrix represents m = m_scale
∗
m.
Parameters
in,out
m
The matrix to modify.
in
x
Scale factor in x direction.
in
y
Scale factor in y direction.