Museum

Home

Lab Overview

Retrotechnology Articles

Online Manuals

⇒ mapw2(3g) — GL2 W2.4

Media Vault

Software Library

Restoration Projects

Artifacts Sought

mapw2()  —  Silicon Graphics

NAME

mapw2 - maps a point on the screen into 2D world coordinates

SPECIFICATION

C
mapw2(vobj, sx, sy, wx, wy)
Object vobj;
Screencord sx, sy;
Coord *wx, *wy;

FORTRAN
subroutine mapw2(vobj, sx, sy, wx, wy)
integer*4 vobj, sx, sy
real wx, wy

Pascal
procedure mapw2(vobj: Object; sx, sy: Screencoord;
var wx, wy: Coord);

DESCRIPTION

mapw2 is the two-dimensional version of mapw.  vobj is a viewing object containing the viewport, projection, viewing, and modelling transformations that define world space; sx and sy define a screen space point.  The corresponding world space coordinates are returned in wx and wy.  If the transformation is not 2D, the result is undefined. 

SEE ALSO

mapw

NOTE

This command can be used only in immediate mode. 

Version 2.4  —  May 08, 1986

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