[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface : Subroutine Reference

GPROT2 - Rotate 2

GPROT2 (angle, matrix)

Purpose

Use GPROT2 to calculate a two-dimensional rotation matrix using a given angle of rotation.

Parameters

angle -- specified by user, short floating-point number

Rotation angle in radians.

matrix -- returned by the graPHIGS API, 9 short floating-point numbers

Transformation matrix.

The elements are returned in the following order for the transformation matrix:

             
  |m11 m12 m13|
  |m21 m22 m23| ---> (m11,m12,m13,m21....m33)
  |m31 m32 m33|
             

Error Codes

None

Related Subroutines

None

RCP code

201330952 (X'0C001108')


[ Previous | Next | Contents | Glossary | Home | Search ]