Draws a segment of a circle around the x/y location given. All angles for 'drawSegment' are given in radians, and it draws the segment in a clockwise direction.
drawSegment( x, y, radius, startAngle, endAngle, isCentred = false )
Draws the outline of a circle segment, around the x and y location.
The 'radius' refers to the distance from the middle of the circle, that the segment is from, to the outer edge.
'isCentred' defines if the x and y location is the top left corner, or the middle.
drawSegment( 10, 10, 200, 0, 30.toRadians(), true )
drawSegment( x, y, radius, startAngle, endAngle, xAlign, yAlign )
Draws the segment of a circle, but allows you to specify alignment on the x and y axis.
See the article on How Alignment Works for information on the xAlign and yAlign parameters.