pscale3(3g) — Subroutines
Name
pscale3 − Creates a 3D homogeneous transformation matrix that performs the specified scaling.
Operating States: PHOP, ∗, ∗, ∗
PHIGS standard function
Syntax
void pscale3 (
const Pvec3 ∗scale_vector, /∗ (I) Scale factor vector ∗/
Pint ∗error_ind, /∗ (O) Error indicator ∗/
Pmatrix3 matrix /∗ (O) Transformation matrix ∗/
)
Data Structures
typedef struct {
Pfloat delta_x; /∗ delta x value ∗/
Pfloat delta_y; /∗ delta y value ∗/
Pfloat delta_z; /∗ delta z value ∗/
} Pvec3;
typedef Pfloat Pmatrix3[4][4];
Description
pscale3 creates a three-dimensional (4 x 4) homogeneous transformation matrix that performs the specified scaling. The returned matrix can be passed to functions that require transformation matrices as input, such as the pset_local_tran3, pset_global_tran3, and pcompose_matrix3 functions. To store a matrix in a structure element, you must pass it to the pset_local_tran3 or pset_global_tran3 function.
See Also
pbuild_tran_matrix3
pcompose_tran_matrix3
protate_x
protate_y
protate_z
pscale
pset_global_tran3
pset_local_tran3
ptran_point3
ptranslate3