Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pro(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

PRO(3g)  —  Subroutines

Name

PRO − Creates a 2D homogeneous transformation matrix used to rotate the axes. 

Operating States: PHOP, ∗, ∗, ∗
PHIGS standard function
 

Syntax

PRO (ROTANG, ERRIND, XFRMT)

Argument        Data Type       Access    Description
---------------------------------------------------------------------------
ROTANG          Real            Read      Rotation angle in radians; a
                                          positive number yields a
                                          counterclockwise rotation (when
                                          looking along the positive
                                          z-axis, towards the origin).
ERRIND          Integer         Write     Error indicator.
XFRMT(3,3)      Array of reals  Write     Transformation matrix.
---------------------------------------------------------------------------

Description

PRO creates a two-dimensional (3 x 3) homogeneous transformation matrix used to perform the specified rotation of the axes.  If a rotation direction is counterclockwise (when viewed from positive z towards negative z), the rotation value is positive. 

The returned matrix can be passed to functions that require transformation matrices as input, such as the PSLMT, PSGMT, and PCOM functions.  To store a matrix in a structure element, you must pass it to one of the PSGMT or PSLMT functions. 

See Also

PBLTM3
PCOM
PCOTM
PROX
PROY
PROZ
PSC
PSGMT
PSLMT
PTP
PTR

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026