BUILD TRANSFORMATION MATRIX
CALL SEQUENCE
CALL PBLTM (XO, YO, DX, DY, PHI, FX, FY, ERRIND, XFRMT)
INPUT PARAMETERS
- REAL XO, YO
- Fixed point in Modelling Coordinates. Scaling and rotation are calculated
with respect to this point.
- 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 XFRMT
- Homogeneous 3 x 3 matrix realizing the transformation defined by
translation (DX, DY), rotation (PHI) and scaling (FX, FY).
PHIGS STATE
(PHOP, *, *, *).
EFFECT
Returns a homogeneous 4 x 4 matrix to be used for a 3D transformation which
includes:
- scaling FX,FY
- rotation PHI
- translation DX,DY
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, compose transformation matrix