PCOTM(3g) — Subroutines
Name
PCOTM − Returns a 2D homogeneous transformation matrix.
Operating States: PHOP, ∗, ∗, ∗
PHIGS standard function
Syntax
PCOTM (XFRMTI, X0, Y0, DX, DY, PHI, FX, FY, ERRIND, XFRMTO)
Argument Data Type Access Description
---------------------------------------------------------------------------
XFRMTI(3,3) Array of reals Read Transformation matrix
X0, Y0 Real Read Fixed point
DX, DY Real Read Shift vector
PHI Real Read Rotation angle, in radians
FX, FY Real Read Scale factor vector
ERRIND Integer Write Error indicator
XFRMTO(3,3) Array of reals Write Modified transformation matrix
---------------------------------------------------------------------------
Description
PCOTM returns a two-dimensional (3 x 3) homogeneous transformation matrix. Digital PHIGS multiplies the input matrix (A) times the resultant transformation matrix (R) from the specified fixed point, shift, scale values, and rotations. The result is A x R. The order of the transformation is as follows:
1Scale (relative to the specified fixed point)
2Rotate (relative to the specified fixed point)
3Shift (move)
To store a matrix in a structure element, you must pass it to the PSLMT or PSGMT function.
See Also
PBLTM
PCOM
PCOTM3
PRO
PSC
PSGMT
PSLMT
PTR