Grasshopper API
GH_ViewportIsVisible Method (PointF, Single) |
Test visibility of a point.
Namespace: Grasshopper.GUI.Canvas
Assembly: Grasshopper (in Grasshopper.dll)

public bool IsVisible( ref PointF pt, float margin = 0f )
Public Function IsVisible ( ByRef pt As PointF, Optional margin As Single = 0F ) As Boolean
Parameters
- pt
- Type: System.DrawingPointF
Point in canvas coordinates. - margin (Optional)
- Type: SystemSingle
Fuzzy area around point to test.
Return Value
Type: BooleanTrue if the point is visible in the control upon projection.
