Museum

Home

Lab Overview

Retrotechnology Articles

⇒ Online Manual

Media Vault

Software Library

Restoration Projects

Artifacts Sought

mapw2(3)  —  Unix Programmer’s Manual

NAME

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

SYNOPSIS

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

FORTRAN
subroutine mapw2(vobj, sx, sy, wx, wy)
integer vobj
integer∗2 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 and viewing 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 only be used in immediate mode. 

Silicon Graphics  —  R1c

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