Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ ptranslate3(3g) — PHIGS 5.1

Media Vault

Software Library

Restoration Projects

Artifacts Sought

ptranslate3(3g)  —  Subroutines

Name

ptranslate3 − Creates a 3D homogeneous transformation matrix that performs a translation. 

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

Syntax

void ptranslate3 (
  const Pvec3   ∗trans_vector,  /∗ (I) Translation 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

ptranslate3 creates a three-dimensional (4 x 4) homogeneous transformation matrix that performs the translation as defined by the specified translation vector.  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_global_tran3 or pset_local_tran3 function. 

See Also

pbuild_tran_matrix3
pcompose_matrix3
pcompose_tran_matrix3
protate_x
protate_y
protate_z
pscale3
pset_global_tran3
pset_local_tran3
pset_view_rep3
ptran_point3
ptranslate

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