MindFusion.Charting for JavaScript Programmer's Guide
DrawingUtils.pointInPolygon 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

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