Vizard 7 » Command Index » Vizard objects » window » <window>.displayToWindow
7.7

<window>.displayToWindow

Convert from display to window coordinates

<window>.displayToWindow(  
[x,y]  
mode = viz.WINDOW_NORMALIZED # keyword argument
)  
[x,y]
2D display window coordinates
mode = viz.WINDOW_NORMALIZED
One of the following modes:

Unit mode

viz.WINDOW_NORMALIZED

The coordinates passed and returned by the function will be in normalized units, [0,1].

viz.WINDOW_PIXELS

The coordinates passed and returned by the function will be in pixel units.

Remarks

This command will convert display window coordinates into window coordinates.

Return Value

[x,y]

See also

<window>.windowToDisplay