ptran_point(3g) — Subroutines
Name
ptran_point − Applies a 2D transformation matrix to a point.
Operating States: PHOP, ∗, ∗, ∗
PHIGS standard function
Syntax
void ptran_point (
const Ppoint ∗pt, /∗ (I) Coordinates of the input point ∗/
Pmatrix matrix, /∗ (I) Transformation matrix ∗/
Pint ∗error_ind, /∗ (O) Error indicator ∗/
Ppoint ∗new_pt /∗ (O) Coordinates of the transformed
point ∗/
)
Data Structures
typedef struct {
Pfloat x; /∗ x coordinate ∗/
Pfloat y; /∗ y coordinate ∗/
} Ppoint;
typedef Pfloat Pmatrix[3][3];
Description
ptran_point applies the specified two-dimensional (3 x 3) transformation matrix (as created, for example, with the pbuild_tran_matrix, protate, ptranslate, or pscale function) to a specified point. It returns the resulting transformed point value.
See Also
pbuild_tran_matrix
pcompose_matrix
pcompose_tran_matrix
protate
pscale
pset_local_tran3
ptran_point3
ptranslate