From 3b56eb74c973b148350fc1b0ebcb2040548cbdbc Mon Sep 17 00:00:00 2001 From: Mikolaj Wielgus Date: Mon, 1 Dec 2025 01:32:46 +0100 Subject: [PATCH] fix(geometry/primitive): Fix constants altered during debugging --- src/geometry/primitive.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/geometry/primitive.rs b/src/geometry/primitive.rs index f2eae1a..8a74259 100644 --- a/src/geometry/primitive.rs +++ b/src/geometry/primitive.rs @@ -294,8 +294,8 @@ impl BendShape { /// Determines if the provided point lies in the swept region between the rays cast by tangents /// to the arc endpoints of the bend's outer circle, starting at `from` and `to`. pub fn between_tangent_rays(&self, point: Point) -> bool { - math::perp_dot_product(point - self.from, self.from_tangent_ray()) > 0.001 - && math::perp_dot_product(point - self.to, self.to_tangent_ray()) < -0.001 + math::perp_dot_product(point - self.from, self.from_tangent_ray()) > 0.0 + && math::perp_dot_product(point - self.to, self.to_tangent_ray()) < 0.0 } pub fn from_tangent_ray(&self) -> Point {