screenToLocation

suspend fun screenToLocation(screenCoordinate: ScreenCoordinate): Result<Point>

Converts a screen coordinate to a location in scene coordinates, considering both the scene's base surface and other scene content.

Note that elevation values are approximated, and as the distance between the camera and the surface increases, the precision of the elevation value decreases.

To call this method, assign a scene to the scene view, ensure that it is loaded and the draw status is DrawStatus.Completed.

Return

A Result containing a Point on the scene.

Since

200.1.0

Parameters

screenCoordinate

a pixel coordinate relative to the upper-left corner of the screen.