Returns the point that lies on the outline of a rectangle and is nearest to the given point.
Namespace: MindFusion.Drawing
File: DrawingUtils.js
JavaScript Copy Code |
---|
function distToRectPoint (point, rect) |
Point. The point to consider.
Rect. The rectangle to consider.
Number. The nearest point.