Make angle correct

This commit is contained in:
Lars Brubaker 2018-08-17 18:29:24 -07:00
parent cadd30d7b1
commit 3fbfb34205
3 changed files with 4 additions and 4 deletions

View file

@ -172,8 +172,8 @@ namespace MatterHackers.MatterControl.CustomWidgets
var ringArc = new Arc(
Vector2.Zero,
new Vector2(outerRingRadius, outerRingRadius),
0,
MathHelper.Tau - MathHelper.DegreesToRadians(360) * LayerCompletedRatio, // percentCompletedInRadians
0,
Arc.Direction.CounterClockWise);
var arcStroke = new Stroke(ringArc);
@ -186,8 +186,8 @@ namespace MatterHackers.MatterControl.CustomWidgets
ringArc = new Arc(
Vector2.Zero,
new Vector2(innerRingRadius, innerRingRadius),
0,
MathHelper.Tau - MathHelper.DegreesToRadians(360) * CompletedRatio, // percentCompletedInRadians
0,
Arc.Direction.CounterClockWise);
arcStroke = new Stroke(ringArc);
arcStroke.width(innerRingStrokeWidth);