Checks if the given point is within the bounds of the given pie.
Namespace: MindFusion.Drawing
File: Graphics.js
JavaScript
![]() |
---|
function pointInPie (point, rect, radius, startAngle, endAngle, [doughnut]) |
Type: Point
The point to check.
Type: Rect
The bounds of the pie.
Type: Number
The radius of the pie.
Type: Number
The startAngle of the pie.
Type: Number
The endAngle of the pie.
Type: Boolean
True if the pie is a doughnut, otherwise false.
Type: Boolean
True if the point lies within pie bounds, otherwise false.