#include <revolution.mtx.h> void C_MTXRotTrig ( Mtx m, u8 axis, f32 sinA, f32 cosA ); void PSMTXRotTrig ( Mtx m, u8 axis, f32 sinA, f32 cosA ); #define MTXRotTrig C_MTXRotTrig // for debug build #define MTXRotTrig PSMTXRotTrig // for nondebug build
m |
New rotation matrix. The type of m may be either Mtx or MtxPtr. |
|---|---|
| axis | One of the major axes (X, Y, Z). For convenience, axis is specified as a character, one of 'X' |
| sinA | Sine of rotation angle. |
| cosA | Cosine of rotation angle. |
None.
Creates a rotation matrix about one of the major axes (X, Y, Z). Counter-clockwise rotations are positive. Rotation values are specified as sines or cosines.
During a debug build, the MTXRotTrig function is parsed as C_MTXRotTrig, which is a normal C language version. During a non-debug build for a Broadway processor, the paired-singles equivalent of this function, PSMTXRotTrig, will be automatically substituted. You can also call C_MTXRotTrig and PSMTXRotTrig explicitly.
Mtx, MtxPtr, MTXQuat, MTXRotAxisRad, MTXRotAxisDeg, MTXRotRad, MTXRotDeg
2006/03/01 Initial version.
CONFIDENTIAL