void pbuild_tran_matrix(
const Ppoint *pt /* fixed point */ const Pvec *shift /* shift vector */ Pfloat angle /* rotation angle */ const Pvec *scale /* scale vector */ Pint *error_ind /* (out) error indicator */ Pmatrix result /* (out) transformation matrix */
)
typedef struct {
Pfloat x; /* x coordinate */
Pfloat y; /* y coordinate */
} Ppoint;
typedef struct {
Pfloat delta_x; /* delta x */ Pfloat delta_y; /* delta y */
} Pvec;
typedef Pfloat Pmatrix[3][3];
- translation shift
The returned matrix can be used as the transformation matrix for the SET LOCAL TRANSFORMATION MATRIX, SET GLOBAL TRANSFORMATION MATRIX and similar functions.
set global transformation, set local transformation, translate, scale, rotate, compose matrix, compose transformation matrix