From 80a048faaf6de77002ab628ceefa621f827f7f83 Mon Sep 17 00:00:00 2001 From: Ellen Emilia Anna Zscheile Date: Mon, 30 Jun 2025 15:26:08 +0200 Subject: [PATCH] fix(math/line): Fix offset of 'orthogonal_through' (which didn't match with the 'intersects' sign) --- src/math/line.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/math/line.rs b/src/math/line.rs index 3d3e0ec..984096f 100644 --- a/src/math/line.rs +++ b/src/math/line.rs @@ -81,7 +81,7 @@ impl NormalLine { // recover the original parallel vector x: -self.y, y: self.x, - offset: -self.x * pt.0.y + self.y * pt.0.x, + offset: self.x * pt.0.y - self.y * pt.0.x, } }