Grasshopper API
GH_GraphicsUtilBoxClosestArcPoint Method |
Find the closest point on or in a box given a test point. Arc extension is implied.
Namespace: Grasshopper.GUI
Assembly: Grasshopper (in Grasshopper.dll)

public static PointF BoxClosestArcPoint( PointF pt, RectangleF box )
Public Shared Function BoxClosestArcPoint ( pt As PointF, box As RectangleF ) As PointF
Parameters
- pt
- Type: System.DrawingPointF
Sample point. - box
- Type: System.DrawingRectangleF
Box to evaluate.
Return Value
Type: PointF