COMPOSE TRANSFORMATION MATRIX 3
CALL SEQUENCE
CALL PCOTM3 (XFRMTI, XO, YO, ZO, DX, DY, DZ, PHIX, PHIY, PHIZ, FX, FY, FZ, ERRIND, XFRMTO)
INPUT PARAMETERS
- REAL XFRMTI
- Homogeneous (4 x 4) 3D transformation matrix.
- REAL XO, YO, ZO
- 3D point defined in Modelling Coordinate which will be the centre of The
rotation and of the scale factor.
- REAL DX, DY, DZ
- Vector defining the translation.
- REAL PHIX, PHIY, PHIZ
- Rotation angle in radians (positive angle: anticlockwise direction;
negative angle: clockwise direction).
- REAL FX, FY, FZ
- Scale factors defined for each direction
-
OUTPUT PARAMETERS
-
- INTEGER ERRIND
- Error indicator
- REAL XFRMTO
- Homogeneous (4 x 4) matrix resulting from the composition of the XFRMTI
matrix and the translation defined by (DX, DY, DZ), rotation (PHIX, PHIY, PHIZ)
and scaling (FX, FY,FZ).
PHIGS STATE
(PHOP, *, *, *).
EFFECT
Returns a homogeneous 4 x 4 matrix built from a homogeneous 4 x 4 matrix and by
scaling, x rotation, y rotation, z rotation and translation.
The returned matrix can be used as the transformation matrix for the SET LOCAL
TRANSFORMATION MATRIX 3, SET GLOBAL TRANSFORMATION MATRIX 3 and similar
functions.
ERRORS
- 2
Ignoring function, function requires state (PHOP, *,*,*)
SEE ALSO
set global transformation 3, set local transformation 3, translate 3, scale 3,
rotate x, rotate y, rotate z, compose matrix 3, build transformation matrix 3