Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ pscale(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

pscale(3g)  —  Subroutines

Name

pscale − Creates a 2D homogeneous transformation matrix that performs the specified scaling. 

 
Operating States: PHOP, ∗, ∗, ∗
PHIGS standard function

Syntax

void pscale (
  const Pvec   ∗scale_vector,   /∗ (I) Scale factor vector ∗/
  Pint         ∗error_ind,      /∗ (O) Error indicator ∗/
  Pmatrix       matrix          /∗ (O) Transformation matrix ∗/
)

Data Structures

typedef struct {
    Pfloat     delta_x;    /∗ delta x value ∗/
    Pfloat     delta_y;    /∗ delta y value ∗/
} Pvec;
typedef Pfloat Pmatrix[3][3];

Description

pscale creates a two-dimensional (3 x 3) 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_tran, pset_global_tran, and pcompose_matrix functions.  To store a matrix in a structure element, you must pass it to the pset_local_tran or pset_global_tran function. 
 

See Also

pbuild_tran_matrix
pcompose_tran_matrix
protate
pscale3
pset_global_tran
pset_local_tran
ptran_point
ptranslate

Typewritten Software • bear@typewritten.org • Edmonds, WA 98026