mirror of https://codeberg.org/topola/topola.git
fix(math/line): Fix offset of 'orthogonal_through' (which didn't match with the 'intersects' sign)
This commit is contained in:
parent
30c6df31ab
commit
80a048faaf
|
|
@ -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,
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue