MindFusion.Charting for JavaScript Programmer's Guide
Graphics.pointInPie Method
See Also
 






Checks if the given point is within the bounds of the given pie.

Namespace: MindFusion.Drawing
File: Graphics.js

 Syntax

JavaScript  Copy Code

function pointInPie (point, rect, radius, startAngle, endAngle, [doughnut])

 Parameters

point

Type: Point
The point to check.

rect

Type: Rect
The bounds of the pie.

radius

Type: Number
The radius of the pie.

startAngle

Type: Number
The startAngle of the pie.

endAngle

Type: Number
The endAngle of the pie.

doughnut
Optional.

Type: Boolean
True if the pie is a doughnut, otherwise false.

 Return Value

Type: Boolean
True if the point lies within pie bounds, otherwise false.

 See Also

Graphics Members
Graphics Class
MindFusion.Drawing Namespace