Eyeshot 9.0 WinForms API Reference
ScreenToWorld(Point) Method

WinForms Assembly > devDept.Eyeshot Namespace > ViewportLayout Class > ScreenToWorld Method : ScreenToWorld(Point) Method
Mouse cursor position (zero on top)
Maps screen coordinates to world coordinates.
Syntax
'Declaration
 
Public Overloads Function ScreenToWorld( _
   ByVal mousePos As Point _
) As Point3D
public Point3D ScreenToWorld( 
   Point mousePos
)

Parameters

mousePos
Mouse cursor position (zero on top)

Return Value

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.
See Also

Reference

ViewportLayout Class
ViewportLayout Members
Overload List