pbuild_tran_matrix(3g) — Subroutines
Name
pbuild_tran_matrix − Creates a 2D homogeneous transformation matrix and performs the specified transformation.
Operating States: PHOP, ∗, ∗, ∗
PHIGS standard function
Syntax
void pbuild_tran_matrix (
const Ppoint ∗pt, /∗ (I) Fixed point ∗/
const Pvec ∗shift, /∗ (I) Shift vector ∗/
Pfloat angle, /∗ (I) Rotation angle, in radians ∗/
const Pvec ∗scale, /∗ (I) Scale factor vector ∗/
Pint ∗error_ind, /∗ (O) Error indicator ∗/
Pmatrix matrix /∗ (O) Transformation matrix ∗/
)
Data Structures
typedef struct {
Pfloat x; /∗ x coordinate ∗/
Pfloat y; /∗ y coordinate ∗/
} Ppoint;
typedef struct {
Pfloat delta_x; /∗ delta x value ∗/
Pfloat delta_y; /∗ delta y value ∗/
} Pvec;
typedef Pfloat Pmatrix[3][3];
Description
pbuild_tran_matrix creates a two-dimensional (3 x 3) homogeneous transformation matrix, which performs the specified transformation. The order of the transformation is as follows:
1Scale (relative to the specified fixed point)
2Rotate (relative to the specified fixed point)
3Shift (move)
See Also
pcompose_tran_matrix
pset_global_tran
pset_local_tran