Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ protate_y(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

protate_y(3g)  —  Subroutines

Name

protate_y − Creates a 3D homogeneous transformation matrix that executes a rotation about the y-axis. 

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

Syntax

void protate_y (
  Pfloat     angle,      /∗ (I) Rotation angle, in radians; a positive
                                number yields a counterclockwise
                                rotation ∗/
  Pint      ∗error_ind,  /∗ (O) Error indicator ∗/
  Pmatrix3   matrix      /∗ (O) Transformation matrix ∗/
)

Data Structures

typedef Pfloat Pmatrix3[4][4];

Description

protate_y creates a three-dimensional (4 x 4) homogeneous transformation matrix that performs the specified rotation about the y-axis.  If a rotation direction is counterclockwise, the rotation value is positive. 

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_matrix3
pcompose_tran_matrix3
protate
protate_x
protate_z
pscale3
pset_global_tran3
pset_local_tran3
ptran_point3
ptranslate3

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