Previous Next Up Title Contents Index Functions Index Top Library

COMPOSE TRANSFORMATION MATRIX

PCOTM


CALL SEQUENCE

CALL PCOTM (XFRMTI, XO, YO, DX, DY, PHI, FX, FY, ERRIND, XFRMTO)

INPUT PARAMETERS

REAL XFRMTI
Homogeneous (3 x 3) 2D transformation matrix.
REAL XO, YO
2D point defined in Modelling Coordinates which will be the centre of the rotation and of the scale factor.
REAL DX, DY
Vector defining the translation.
REAL PHI
Rotation angle in radians (positive angle: anticlockwise direction; negative angle: clockwise direction).
REAL FX, FY
Scale factors defined for each direction
OUTPUT PARAMETERS
INTEGER ERRIND
Error indicator
REAL XFRMTO
Homogeneous (3 x 3) matrix resulting from the composition of the XFRMTI matrix and the translation defined by (DX, DY), rotation (PHI) and scaling (FX, FY).

PHIGS STATE

(PHOP, *, *, *).

EFFECT

Returns a homogeneous 3 x 3 matrix built from a homogeneous 3 x 3 matrix and by scaling, rotation and translation.

The returned matrix can be used as the transformation matrix for the SET LOCAL TRANSFORMATION MATRIX, SET GLOBAL TRANSFORMATION MATRIX and similar functions.

ERRORS

2
Ignoring function, function requires state (PHOP, *,*,*)

SEE ALSO

set global transformation, set local transformation, translate, scale, rotate, compose matrix, build transformation matrix


Previous Next Up Title Contents Index Functions Index Top Library