Viewport.ScreenToWorld (Point) Method

Maps screen coordinates to world coordinates.
Public Function ScreenToWorld( _ 
ByVal mousePos As Point
) As Point3D
This language is not supported or no code example is available.
public Point3D ScreenToWorld( 
Point mousePos 
)
This language is not supported or no code example is available.

Parameters

mousePos
Point

Mouse cursor position (zero on top)

Return Value

Point3D

The associated 3D world point if there is geometry in the point position, null otherwise.

Remarks
 
The depth is read from the depth buffer, so its precision affects accuracy.

.NET Framework

Supported in: 4.8

In this article

Definition