Module Documentation
FM4, S6E2DH/S6E2DF/S6E2D5/S6E2D3 Series, 32-Bit Microcontroller, Graphic Driver User Manual, Doc. No. 002-04387 Rev. *A
175
11.17.4.30 MML_GDC_2D_MATRIX_API void utMat4x4Perspective ( Mat4x4 m, MM_FLOAT fovy,
MM_FLOAT aspect, MM_FLOAT zNear, MM_FLOAT zFar )
Apply a perspective projection onto a 4x4-matrix.
Parameters
in,out
m
The input/output matrix.
in
fovy
The opening angle of the frustrum (in degrees).
in
aspect
The ratio of width/height.
in
zNear
The near distance.
in
zFar
The far distance.
11.17.4.31 MML_GDC_2D_MATRIX_API void utMat4x4RotX ( Mat4x4 m, MM_FLOAT f )
Rotate a 4x4-matrix around the X-axis.
Parameters
in,out
m
The input/output matrix.
in
f
The rotation angle (in radians).
11.17.4.32 MML_GDC_2D_MATRIX_API void utMat4x4RotY ( Mat4x4 m, MM_FLOAT f )
Rotate a 4x4-matrix around the Y-axis.
Parameters
in,out
m
The input/output matrix.
in
f
The rotation angle (in radians).
11.17.4.33 MML_GDC_2D_MATRIX_API void utMat4x4RotZ ( Mat4x4 m, MM_FLOAT f )
Rotate a 4x4-matrix around the Z-axis.
Parameters
in,out
m
The input/output matrix.
in
f
The rotation angle (in radians).
11.17.4.34 MML_GDC_2D_MATRIX_API void utMat4x4Scale ( Mat4x4 m, MM_FLOAT x,
MM_FLOAT y, MM_FLOAT z )
Modify a 4x4-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.
in
z
Scale factor in z direction.