RhinoCommon API
RhinoViewportGetFrustumLine Method |
Gets the world coordinate line in the view frustum that projects to a point on the screen.
Namespace: Rhino.Display
Assembly: RhinoCommon (in RhinoCommon.dll)

public bool GetFrustumLine( double screenX, double screenY, out Line worldLine )
Public Function GetFrustumLine ( screenX As Double, screenY As Double, <OutAttribute> ByRef worldLine As Line ) As Boolean
Parameters
- screenX
- Type: SystemDouble
(screenx,screeny) = screen location. - screenY
- Type: SystemDouble
(screenx,screeny) = screen location. - worldLine
- Type: Rhino.GeometryLine
3d world coordinate line segment starting on the near clipping plane and ending on the far clipping plane.
Return Value
Type: Booleantrue if successful. false if view projection or frustum is invalid.

Rhino for Mac
Supported in: 5.4Rhino for Windows
Supported in: 6.8