Return to previous page | Return to menu | Go to next page
-
Mathematical calculation library
-
1. Guide
1.1 Purpose
The - mathematical calculation library is a group of routines that facilitate 3D display, 3D object movement calculation, 32-bit fixed-point arithmetic, and so on.
These routines fall into the following categories:
- Trigonometric function
Extract sin and cos values from the table. The table is registered in units of 1 degree, and linear interpolation is performed for 1 degree.
- Matrix operation processing
Matrix stack management and matrix composition processing.
- 3D coordinate transformation processing by DSP
Performs hidden surface determination, brightness calculation, and coordinate conversion processing of polygon data used in the sprite 3D display library in a batch using the DSP.
- Transparent transformation processing
Performs perspective transformation from 3D to 2D screen in the viewpoint coordinate system.
The viewpoint position is the origin, and the screen position is -1.0 position on the Z axis.
- Random number generation processing
Generates a random number used in the game in the range of 0 to 0xffffffff.
Return to previous page | Return to menu | Go to next page