/// Gets or sets the angle, in degrees, added to the <see cref="StartAngle"/> defining where the arc ends. A positive value is clockwise, negative is counter-clockwise.
/// Gets or sets the angle, in degrees, added to the <see cref="StartAngle"/> defining where the arc ends.
/// A positive value is clockwise, negative is counter-clockwise.
/// </summary>
publicdoubleSweepAngle
{
get{returnGetValue(SweepAngleProperty);}
set{SetValue(SweepAngleProperty,value);}
get=>GetValue(SweepAngleProperty);
set=>SetValue(SweepAngleProperty,value);
}
protectedoverrideGeometryCreateDefiningGeometry()
{
doubleangle1=DegreesToRad(StartAngle);
doubleangle2=angle1+DegreesToRad(SweepAngle);
varangle1=DegreesToRad(StartAngle);
varangle2=angle1+DegreesToRad(SweepAngle);
doublestartAngle=Math.Min(angle1,angle2);
doublesweepAngle=Math.Max(angle1,angle2);
varstartAngle=Math.Min(angle1,angle2);
varsweepAngle=Math.Max(angle1,angle2);
doublenormStart=RadToNormRad(startAngle);
doublenormEnd=RadToNormRad(sweepAngle);
varnormStart=RadToNormRad(startAngle);
varnormEnd=RadToNormRad(sweepAngle);
varrect=newRect(Bounds.Size);
if((normStart==normEnd)&&(startAngle!=sweepAngle))// complete ring