Japanese
PROGRAMMER'S GUIDEMathematics calculation library
BackForward
Math calculation library

2.2 Function list

 function
 Function name
 number
Trigonometric function
 sin function
 MTH_Sin
 1
 cos function
 MTH_Cos
 2
 atan function
 MTH_Atan
 3
Matrix calculation processing
 Matrix stack initialization
 MTH_InitialMatrix
 4
 Clear current matrix
 MTH_ClearMatrix
 5
 matrix push
 MTH_PushMatrix
 6
 matrix pop
 MTH_PopMatrix
 7
 Matrix synthesis/parallel movement
 MTH_MoveMatrix
 8
 Matrix synthesis/X-axis rotation
 MTH_RotateMatrixX
 9
 Matrix synthesis/Y-axis rotation
 MTH_RotateMatrixY
 10
 Matrix synthesis/Z-axis rotation
 MTH_RotateMatrixZ
 11
 Matrix synthesis/Z-axis sign inversion
 MTH_ReverseZ
 12
 Matrix operation/multiplication
 MTH_MulMatrix
 13
 Matrix calculation/vertex coordinate transformation
 MTH_CordTrans
 14
 Matrix calculation/normal vector coordinate transformation
 MTH_NormalTrans
 15
3D polygon data coordinate conversion processing by DSP
 Initialization of coordinate transformation processing
 MTH_PolyDataTransInit
 16
 Execute coordinate transformation process
 MTH_PolyDataTransExec
 17
 Coordinate conversion process completion check
 MTH_PolyDataTransCheck
 18
Perspective transformation processing
 Perspective transformation of 3D points
 MTH_Pers2D
 19
Random number generation process
 Initializing random number generation
 MTH_InitialRand
 20
 return random value
 MTH_GetRand
 21
Spline curve calculation process
 Curve calculation work area definition macro
 MTH_INIT_CURVE
 22
 Curve calculation 2D
 MTH_Curve2
 23
 Curve calculation 2D with tangent line
 MTH_Curve2t
 24
 Curve calculation 3D
 MTH_Curve3
 25
 Curve calculation 3D with tangent line
 MTH_Curve3t
 26
Fixed-point arithmetic
 multiplication routine
 MTH_Mul
 27
 division routine
 MTH_Div
 28
 Fixed point → floating point type conversion macro
 MTH_FLOAT
 29
 Floating point → fixed point type conversion macro
 MTH_FIXED
 30
 Integer → Fixed-point type conversion routine
 MTH_IntToFixed
 31
 Fixed-point to integer type conversion routine
 MTH_FixedToInt
 32
 Ternary product-sum operation
 MTH_Product
 33
Other functions
 Square root calculation
 MTH_Sqrt
 34
 Calculating the length of the hypotenuse of a right triangle
 MTH_Hypot
 35
 Surface normal vector calculation
 MTH_CompateNormVect
 36


BackForward
PROGRAMMER'S GUIDEMathematics calculation library
Copyright SEGA ENTERPRISES, LTD., 1997