From cd23d62f3dbe31802c7b9b63160cf9ee4be5e611 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Tue, 21 May 2019 20:24:04 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20off-by-epsilon=20error=20in=20`push=5Farc?= =?UTF-8?q?`=20that=20was=20breaking=20the=20Moir=C3=A9=20demo?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- geometry/src/outline.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/geometry/src/outline.rs b/geometry/src/outline.rs index 75c1cb1f..7c9a5eb1 100644 --- a/geometry/src/outline.rs +++ b/geometry/src/outline.rs @@ -376,7 +376,7 @@ impl Contour { mut end_angle: f32) { start_angle %= TWO_PI; end_angle %= TWO_PI; - if end_angle < start_angle { + if end_angle <= start_angle { end_angle += TWO_PI; }