fix(math/line): Fix offset of 'orthogonal_through' (which didn't match with the 'intersects' sign)

This commit is contained in:
Ellen Emilia Anna Zscheile 2025-06-30 15:26:08 +02:00
parent 30c6df31ab
commit 80a048faaf
1 changed files with 1 additions and 1 deletions

View File

@ -81,7 +81,7 @@ impl NormalLine {
// recover the original parallel vector // recover the original parallel vector
x: -self.y, x: -self.y,
y: self.x, 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,
} }
} }