Search
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

Point. The point to check.

polygon

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

 Return Value

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

 See Also