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

TRANSFORM POINT (PHOP,*,*,*)

Purpose

Use Transform Point to transform a point using a specified transformation matrix.

The graPHIGS API returns the result of multiplying the given point by the transformation. If the graPHIGS API cannot return the transformed point, then the values of the point are unpredictable and the graPHIGS API sets the error indicator to the following error:

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

Language Bindings

C

ptran_point (point, tran, err_ind, result)

Input Parameters

const Ppoint *point
Point.

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

Output Parameters

Pint *err_ind
Error indicator.

Ppoint *result
Transformed point.

FORTRAN

PTP (xi, yi, xfrmt, errind, xo, yo)

Input Parameters

real xi
x coordinate of the point.

real yi
y coordinate of the point.

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

Output Parameters

integer errind
Error indicator.

real xo
x coordinate of the transformed point.

real yo
y coordinate of the transformed point.

Errors

None

Related Subroutines

  • None


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