Search
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

The point to check.

rect

The bounds of the pie.

radius

The radius of the pie.

startAngle

The startAngle of the pie.

endAngle

The endAngle of the pie.

doughnut
Optional.

True if the pie is a doughnut, otherwise false.

 Return Value

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

 See Also