Notes:
A circle segment is a shape formed by the intersection of an arc of circle and a chord connecting the endpoints of that arc.
The arc of circle is selected using 'thetaStart' and 'thetaEnd' referenced from a horizontal going through the center of the defining circle. (Positive angles are counter-clockwise).
In the picture above, the TNTCircleSegment is in orange, the defining TNTDisk is in white, with special points in black.
Features and Usage:
| Primary Attributes: |
6 parameters: |
|---|---|
| To Create: (See example above) |
var baseDisk = new TNTDisk(center, 10, null, whiteStroke); |
| To Draw: |
myCircleSegment.drawTNTCircleSegment(context); |
| Comments: |
When trying to design these, it helps to sketch the disk first, along with it's center. Starting and ending angles (in degrees) are measured from the horizontal, with positive angles going counter-clockwise, as in math class. We showed this 'scaffolding' in the example above. |
| Even More: | See how we used SohCahToa to get the two black points on the circle from the center and radius? Boy...we ♥ you, trig! |
