MindFusion.Charting for JavaScript Programmer's Guide
DrawingUtils.pointInPolygon Method
See Also
 






Checks whether the specified rectangle contains the specified point.

Namespace: MindFusion.Drawing
File: DrawingUtils.js

 Syntax

JavaScript  Copy Code

function pointInPolygon (point, polygon)

 Parameters

point

Type: Point
Point. The point to check.

polygon

Type: Array
Array. An array with the points that define the polygon.

 Return Value

Type: Boolean
Boolean. true if the polygon contains the specified point, false if not.

 See Also

DrawingUtils Members
DrawingUtils Class
MindFusion.Drawing Namespace