Create a new circle sector with given circle, start- and end-angle.
The circle.
The start angle of the sector.
The end angle of the sector.
CircleSector
CircleSector
Readonly
classRequired to generate proper CSS classes and other class related IDs.
CircleSector
isDestroyed
CircleSector
CircleSector
Readonly
uidThe UID of this drawable object.
CircleSector
Static
circleHelper function to convert a circle section as SVG arc params (for the d
attribute).
Found at: https://stackoverflow.com/questions/5736398/how-to-calculate-the-svg-path-for-an-arc-of-a-circle
TODO: generalize for ellipses (two radii).
[ 'A', radiusx, radiusy, rotation=0, largeArcFlag=1|0, sweepFlag=0, endx, endy ]
Optional
options: { If false (default=true) the initial 'Move' command will not be used.
Helper function to convert polar circle coordinates to cartesian coordinates.
TODO: generalize for ellipses (two radii).
Calculate the intersection of this circle sector and some other sector.
If the two sectors do not corerently intersect (when not both points of the radical line are containted in both source sectors) then null is returned.
See demo/53-circle-sector-intersections for a geometric visualisation.
The intersecion of both sectors or null if they don't intersect.
circleSectorIntersection
CircleSector
Classdesc
A simple circle sector: circle, start- and end-angle.
Requires
Line
Requires
SVGSerializale
Requires
UID
Requires
UIDGenerator
Requires
XYCoords