map_screen_to_world#

Subplot.map_screen_to_world(pos, allow_outside=False)#

Map screen (canvas) position to world position

Parameters:

pos ((float, float) | pygfx.PointerEvent) – (x, y) screen coordinates, or pygfx.PointerEvent

Returns:

(x, y, z) position in world space, z is always 0

Return type:

(float, float, float)