5 Commits

Author SHA1 Message Date
John Beard
78cb6c1189 SEG: Correct sign in LineDistance 2024-09-06 19:26:58 +01:00
Seth Hillbrand
9f4f3deec5 Don't use std::signbit for ints 2024-08-17 07:39:26 -07:00
Seth Hillbrand
fba2b7a04a Modify previous commit to correct logic
We are calculating the same value in two different ways.  If there is an
off-by-one issue in our calculation along axis, this still means that it
was a direct hit on the line as seen in the unit test cases
2024-08-16 17:05:39 -07:00
Lucas Dumont
f3bbf2b7bd Kimath: Squared distance can't be negative
Fixes https://gitlab.com/kicad/code/kicad/-/issues/18473
2024-08-16 17:05:39 -07:00
Marek Roszko
8d4db2edf5 Move tests around 2023-04-24 22:09:36 -04:00