Region2d.ClosestPoint Method

Computes a point somewhere on the regions contours that is as close as possible to a given point.
Public Function ClosestPoint( _ 
ByVal from As Point2d
) As Point2d
This language is not supported or no code example is available.
public Point2d ClosestPoint( 
Point2d from 
)
This language is not supported or no code example is available.
public:  
Point2d^ ClosestPoint( 
Point2d^ from 
)
This language is not supported or no code example is available.
public function ClosestPoint( 
from : Point2d 
) : Point2d;
This language is not supported or no code example is available.

Parameters

from
Point2d

The point to be as close as possible to.

Return Value

Point2d

A new point on the regions contour.

.NET Framework

Supported in: 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8

In this article

Definition