From b8d5405c05325efdf973c63344d4addd3d3a3eb2 Mon Sep 17 00:00:00 2001 From: julia Date: Thu, 8 Aug 2024 07:53:49 +1000 Subject: [PATCH] chore: fmt i should really auto fmt lol --- src/bezpath.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bezpath.rs b/src/bezpath.rs index 7f017cb..6c1c0b4 100644 --- a/src/bezpath.rs +++ b/src/bezpath.rs @@ -143,7 +143,7 @@ impl Vector for VelloBezPath { let a = current.lerp(p1, t); let b = p1.lerp(p2, t); (b.y - a.y).atan2(b.x - a.x) - }, + } PathEl::CurveTo(p1, p2, p3) => { let a = current.lerp(p1, t); let b = p1.lerp(p2, t); @@ -152,7 +152,7 @@ impl Vector for VelloBezPath { let d = a.lerp(b, t); let e = b.lerp(c, t); (d.y - e.y).atan2(d.x - e.x) - }, + } _ => { // cant do f64::EPSILON cause of precision issues let before = interp_pathel(current, path.1, t - f32::EPSILON as f64)