guRotateRPYF

guRotateRPYF [Function]

Function

guRotateRPYF

Creates a rotation modeling matrix (floating point)

Syntax

#include <ultra64.h>        /* gu.h */
void guRotateRPYF(float mf[4][4], float r, float p, float h);

Arguments

mf
The matrix resulting from the calculations
r
Angle of rotation of roll (in degrees, x-axis)
p
Angle of rotation of pitch (in degrees, y-axis)
h
Angle of rotation of heading, or yaw (in degrees, z-axis)

Returned value

None.

Description

Returns to mf a modeling matrix rotated according to (r, p, y). When this function is called, the result is the creation of the following kind of modeling matrix:

Fixed point is handled with the guRotateRPY function.

Note

An angle with a positive value represents counter-clockwise rotation. Be careful about the corresponding axis and the order of rotation.

See Also

guAlign, guAlignF, guPosition, guPositionF, guRotate, guRotateF, guRotateRPY, guScale, guScaleF, guTranslate, and guTranslateF

Revision History

03/01/99 Completely rewritten.