Translates view coordinates to window coordinates.
#include <graph.h>
struct _wxycoord __far _getwindowcoord( short x, short y );
x, y | Viewport coordinate to translate |
The _getwindowcoord function translates the view coordinates (x, y) to window coordinates and returns them in the _wxycoord structure, defined in GRAPH.H.
The _wxycoord structure contains the following elements:
Element | Description |
double wx | x coordinate |
double wy | y coordinate |
The function returns the coordinates in the _wxycoord structure. There is no error return.
Standards:None
16-Bit:DOS
32-Bit:None
_getphyscoord, _getviewcoord functions, _moveto functions, _setwindow
See the example for _setwindow.