RhinoCommon API
Rectangle3dClosestPoint Method (Point3d, Boolean) |
Gets the point on the rectangle that is closest to a test-point.
Namespace: Rhino.Geometry
Assembly: RhinoCommon (in RhinoCommon.dll)

public Point3d ClosestPoint( Point3d point, bool includeInterior )
Public Function ClosestPoint ( point As Point3d, includeInterior As Boolean ) As Point3d
Parameters
- point
- Type: Rhino.GeometryPoint3d
Point to project. - includeInterior
- Type: SystemBoolean
If false, the point is projected onto the boundary edge only, otherwise the interior of the rectangle is also taken into consideration.
Return Value
Type: Point3dThe point on the rectangle closest to the test point or Point3d.Unset on failure.

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