Next: , Previous: , Up: Internal Routines   [Contents][Index]


15.5.111 coordtrf

coordtrf, xold, yold [, xnew, ynew, /dep, /dvi, /dev, /img, /plt, /rim, /rpl, /x11, /todvi, /todev, /toplt, /torim, /torpl, /tox11]

Transforms screen coordinates (xold, yold) to a different coordinate system. Returns the results in xnew, ynew, if these are specified, or in xold, yold otherwise. The source coordinate system is indicated by one of the keywords dep, /dvi, /dev, /img, /plt, /rim, /rpl, or /x11 and the target coordinate system by one of the /to… keywords. By default, the source coordinate system is dep and the target coordinate system is dvi.

To specify the coordinate systems numerically, add the member of #coordsys that corresponds to the source coordinate system to eight times the member of that corresponds to the target coordinate system and assign the result to the mode keyword. For example, to transform from the img to the rpl coordinate system, one can use coordtrf,x,y,/img,/torpl or coordtrf,x,y,mode=#coordsys.img+8*#coordsys.rpl.

See also: Screen Coordinates, #coordsys