MindFusion.Charting for JavaScript Programmer's Guide
DrawingUtils.distToRectPoint Method
See Also
Collapse All Expand All Language Filter: All Language Filter: Multiple Language Filter: None Language Filter: C# Language Filter: Visual Basic Language Filter: Java Language Filter: JavaScript Language Filter: C++ Language Filter: XAML

C#
Visual Basic
Java
JavaScript
C++
XAML

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

Namespace: MindFusion.Drawing
File: DrawingUtils.js

## Syntax

JavaScript Copy Code
function distToRectPoint (point, rect)

### Parameters

point

  Type: Point
  Point. The point to consider.

rect

  Type: Rect
  Rect. The rectangle to consider.

### Return Value

Type: Number
Number. The nearest point.

## See Also

DrawingUtils Members
DrawingUtils Class
MindFusion.Drawing Namespace