ptran_point3(3g) — Subroutines
Name
ptran_point3 − Applies a 3D transformation matrix to a point.
Operating States: PHOP, ∗, ∗, ∗
PHIGS standard function
Syntax
void ptran_point3 (
const Ppoint3 ∗pt, /∗ (I) Coordinates of the input point ∗/
Pmatrix3 matrix, /∗ (I) Transformation matrix ∗/
Pint ∗error_ind, /∗ (O) Error indicator ∗/
Ppoint3 ∗new_pt /∗ (O) Coordinates of the transformed
point ∗/
)
Data Structures
typedef struct {
Pfloat x; /∗ x coordinate ∗/
Pfloat y; /∗ y coordinate ∗/
Pfloat z; /∗ z coordinate ∗/
} Ppoint3;
typedef Pfloat Pmatrix3[4][4];
Description
ptran_point3 applies the specified three-dimensional (4 x 4) transformation matrix (as created, for example, with the pbuild_tran_matrix3, protate, ptranslate3, or pscale3 function) to a specified point. It returns the resulting transformed point value.
See Also
pbuild_tran_matrix3
pcompose_matrix3
pcompose_tran_matrix3
protate
protate_x
protate_y
protate_z
pscale3
pset_local_tran3
ptran_point
ptranslate3