Search
DrawingUtils.distToRectPoint Method
See Also
 





Returns the point that lies on the outline of a rectangle and is nearest to the given point.

Namespace: MindFusion.Drawing
Package: DrawingUtils.js

 Syntax

JavaScript  Copy Code

function distToRectPoint (point, rect)

 Parameters

point

Point. The point to consider.

rect

Rect. The rectangle to consider.

 Return Value

Number. The nearest point.

 See Also