[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference
COMPOSE TRANSFORMATION MATRIX 3 (PHOP,*,*,*)
Purpose
Use
Compose Transformation Matrix 3
to compute a three-dimensional
transformation matrix which
is the composition of the specified matrix with the matrix defined
by the fixed point, shift, rotate and scale parameters. The order
of transformation
(all relative to
the specified fixed point)
is: scale, rotate x, rotate y,
rotate z, and shift.
If the graPHIGS API can compute the transformation matrix,
then the graPHIGS API sets the error indicator to zero,
and returns the composed transformation matrix.
If the graPHIGS API cannot compute the transformation matrix,
then the values of the composed transformation matrix are
unpredictable and the graPHIGS API sets the error indicator to
the following error:
- 2
- Function Requires State (PHOP,*,*,*)
Language Bindings
C
pcompose_tran_matrix3
(tran, point, shift_vec, x_angle,
y_angle, z_angle, scale_vec, err_ind, result_tran) |
Pmatrix3 tranTransformation matrix.
(See
Chapter 15. "ISO PHIGS Transformations" for a description
of the storage of the transformation matrix).
const Ppoint3 *pointFixed point.
const Pvec3 *shift_vecShift vector.
Pfloat x_angleRotation angle x in radians
(positive if counterclockwise).
Pfloat y_angleRotation angle y in radians
(positive if counterclockwise).
Pfloat z_angleRotation angle z in radians
(positive if counterclockwise).
const Pvec3 *scale_vecScale vector.
Pint *err_indError indicator.
Pmatrix3 result_tranComposed transformation matrix.
(See
Chapter 15. "ISO PHIGS Transformations" for a description
of the storage of the transformation matrix).
FORTRAN
PCOTM3
(xfrmti, x0,
y0, z0, dx, dy,
dz, phix, phiy, phiz,
fx, fy, fz,
errind, xfrmto) |
real xfrmti(4,4)Transformation matrix.
(See
Chapter 15. "ISO PHIGS Transformations" for a description
of the storage of the transformation matrix).
real x0x coordinate of the fixed point.
real y0y coordinate of the fixed point.
real z0z coordinate of the fixed point.
real phixRotation angle x in radians
(positive if counterclockwise).
real phiyRotation angle y in radians
(positive if counterclockwise).
real phizRotation angle z in radians
(positive if counterclockwise).
real fxx-axis scale factor.
real fyy-axis scale factor.
real fzz-axis scale factor.
integer errindError indicator.
real xfrmto(4,4)Composed transformation matrix.
(See
Chapter 15. "ISO PHIGS Transformations" for a description
of the storage of the transformation matrix).
Errors
None
Related Subroutines
None
[ Previous |
Next |
Contents |
Glossary |
Home |
Search ]