The subroutines in this category provide convenient mechanisms for modifying data or performing calculations.
Most subroutines perform transformations on matrixes. In addition, the Pack Data Record and Unpack Data Record utilities provide a convenient mechanism for the handling of data records used by input device initialization subroutines. These two utilities are defined only for the FORTRAN binding.
The Create Store and Delete Store utilities are defined only for the C binding. The graPHIGS API uses an object of type Store to facilitate the task of using a C binding subroutine which returns complex data.
Purpose
Use Build Transformation Matrix to calculate a specified two-dimensional homogenous transformation matrix. The order of transformation is: scale, rotate (both relative to the specified fixed point), and shift.
If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error indicator to zero and returns the transformation matrix. If the graPHIGS API cannot compute the transformation matrix, then the values of the matrix are unpredictable and the graPHIGS API sets the error indicator to the following error:
Language Bindings
pbuild_tran_matrix (point, shift_vec, angle, scale_vec, err_ind, result_tran) |
PBLTM (x0, y0, dx, dy, phi, fx, fy, errind, xfrmt) |
Errors
None
Related Subroutines