CreateRotMat.c



void CreateRotMat(char direction, REAL angle, REAL matrix[3][3])

Inputs

char direction Axis about which to rotate
REAL angle Angle (in rads) to rotate

Outputs

REAL matrix[3][3] Rotation matrix

Description

Create a 3x3 rotation matrix. Takes a direction as a single character ('x', 'y', or 'z'), an angle (in rads) and outputs a rotation matrix

Created: 22.07.93 Last Modified: 22.07.93