[ Previous | Next | Contents | Glossary | Home | Search ]
The graPHIGS Programming Interface: ISO PHIGS Subroutine Reference

COMPOSE MATRIX (PHOP,*,*,*)

Purpose

Use Compose Matrix to perform a 33 matrix multiplication and return the result.

The graPHIGS API computes:
Transformation Matrix A Transformation Matrix B
and returns the result as the composed transformation matrix.

If the graPHIGS API can compute the transformation matrix, then the graPHIGS API sets the error indicator to zero and returns the composed transformation matrix. If the graPHIGS API cannot compute the transformation matrix, then the values of the matrix are unpredictable and the graPHIGS API sets the error indicator to the following error:

2
Function Requires State (PHOP,*,*,*)

Language Bindings

C

pcompose_matrix (tran_a, tran_b, err_ind, result_tran)

Input Parameters

Pmatrix tran_a
Transformation matrix A. (See Chapter 15. "ISO PHIGS Transformations" for a description of the storage of the transformation matrix).

Pmatrix tran_b
Transformation matrix B. (See Chapter 15. "ISO PHIGS Transformations" for a description of the storage of the transformation matrix).

Output Parameters

Pint *err_ind
Error indicator.

Pmatrix result_tran
Composed transformation matrix. (See Chapter 15. "ISO PHIGS Transformations" for a description of the storage of the transformation matrix).

FORTRAN

PCOM (xfrmta, xfrmtb, errind, xfrmto)

Input Parameters

real xfrmta(3,3)
Transformation matrix A. (See Chapter 15. "ISO PHIGS Transformations" for a description of the storage of the transformation matrix).

real xfrmtb(3,3)
Transformation matrix B. (See Chapter 15. "ISO PHIGS Transformations" for a description of the storage of the transformation matrix).

Output Parameters

integer errind
Error indicator.

real xfrmto(3,3)
Composed transformation matrix. (See Chapter 15. "ISO PHIGS Transformations" for a description of the storage of the transformation matrix).

Errors

None

Related Subroutines

  • None


  • [ Previous | Next | Contents | Glossary | Home | Search ]