From dcd12279d428e607e1bde2662148a1129f145e48 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 18 Feb 2020 14:35:52 -0800 Subject: [PATCH] Fix counterclockwise arc logic --- content/src/outline.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/src/outline.rs b/content/src/outline.rs index e2e5dec2..0f22558e 100644 --- a/content/src/outline.rs +++ b/content/src/outline.rs @@ -372,8 +372,8 @@ impl Contour { direction: ArcDirection) { let mut direction_transform = Transform2F::default(); if direction == ArcDirection::CCW { - chord = chord.scale_xy(Vector2F::new(-1.0, 1.0)); - direction_transform = Transform2F::from_scale(Vector2F::new(-1.0, 1.0)); + chord = chord.reversed(); + direction_transform = Transform2F::from_scale(Vector2F::new(1.0, -1.0)); } let (mut vector, end_vector) = (UnitVector(chord.from()), UnitVector(chord.to()));