void protate(
Pfloat angle /* rotation angle */ Pint *error_ind /* (out) error indicator */ Pmatrix result /* (out) transformation matrix */
)
typedef Pfloat Pmatrix[3][3];
Returns a homogeneous 3 x 3 matrix to be used for the 2D rotation defined by angle. The rotation angle is specified in radians. A positive value causes rotation in the counter clockwise direction.
The returned matrix can be used as the transformation matrix for the SET LOCAL TRANSFORMATION MATRIX, SET GLOBAL TRANSFORMATION MATRIX, and similar functions.
set global transformation, set local transformation, translate, scale, rotate, compose matrix, build transformation matrix, compose transformation matrix