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) |
Type: Point
Point. The point to consider.
Type: Rect
Rect. The rectangle to consider.
Type: Number
Number. The nearest point.