RhinoViewport.GetFrustumLine Method

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)
Syntax
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: Boolean
true if successful. false if view projection or frustum is invalid.
Version Information

Rhino for Mac

Supported in: 5.4

Rhino for Windows

Supported in: 6.8
See Also