GH_GraphicsUtilBoxClosestPoint Method (PointF, RectangleF) |
Find the closest point on or in a box given a test point.
Namespace:
Grasshopper.GUI
Assembly:
Grasshopper (in Grasshopper.dll)
Syntax public static PointF BoxClosestPoint(
PointF pt,
RectangleF box
)
Public Shared Function BoxClosestPoint (
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:
PointFSee Also