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