Return to previous page | Return to menu | Go to next page


Special modeling transformation

Here are some library functions that perform some special modeling conversion operations. All of these are for adding rotation operations to object data, but the parameter settings differ from the rotation operation library functions described above.

[void slRotXSC (FIXED sin, FIXED cos);]

Substituting sine and cosine values ​​and adding rotation around the X axis.
Assign Sin value and Cos value to the parameter as FIXED type numbers, respectively.

[void slRotYSC (FIXED sin, FIXED cos);]

Substituting sine and cosine values ​​and adding rotation around the Y axis
Assign Sin value and Cos value to the parameter as FIXED type numbers, respectively.

[void slRotZSC (FIXED sin, FIXED cos);]

Substitute sine and cosine values ​​and add rotation around the Z axis.
Assign Sin value and Cos value to the parameter as FIXED type numbers, respectively.

[void slRotAX (VECTOR vx, vy, vz, ANGLE anga);]

Add rotation around an arbitrary axis passing through the origin (axis unit is specified as a vector value).
For the parameter, substitute the unit vector value (XYZ) representing the rotation axis and the rotation angle value.
For the vector value representing the rotation axis, substitute a value that always becomes a unit vector.
A unit vector is a vector whose size is always 1.


Return to previous page | Return to menu | Go to next page