Search
Utilities.MinDistToRect Method
See Also
 





Calculates the minimum distance between a given point and a given rectangle.

Namespace: MindFusion
Assembly: MindFusion.Diagramming.Wpf

 Syntax

C#  Copy Code

public static double MinDistToRect (
    Point pt,
    Rect rc
)

Visual Basic  Copy Code

Public Shared Function MinDistToRect( _
    pt As Point, _
    rc As Rect _
) As Double

 Parameters

pt
A point in the plane.
rc
A rectangle.

 Return Value

A double value specifying the minimum distance between the point and the rectangle.

 See Also