mapw2(3G) mapw2(3G)
NAME
mapw2 - maps a point on the screen into 2-D 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
DESCRIPTION
mapw2 is the 2-D version of mapw. vobj is a viewing object
containing the viewport, projection, viewing, and modeling
transformations that define world space. sx and sy define a
point in screen coordinates. wx and wy return the
corresponding world coordinates. If the transformation is
not 2D, the result is undefined.
SEE ALSO
mapw
Programming Guide, Section 9.1, Mapping Screen Coordinates
to World Coordinates
NOTE
This routine is available only in immediate mode.
Page 1 (printed 8/20/87)