kicad/libs/kimath/src
Tomasz Wlostowski 2be352b9f9 geometry: more robust colinearity test in SHAPE_LINE_CHAIN::Simplify()
We now test the midpoint (B) of the 3 consecutive polyline points (A, B, C), since (assuming the angle between AB and BC is > 90 degrees) AC is always longer than
AB or BC. This minimizes the distance computation rounding error (in the previous algorithm, taking the point C for colineraity test) if AB is short and BC is very long, the test would
often fail due to rouding error in projection/line distance computation


(cherry picked from commit 3aed13278d)
2022-06-08 16:13:15 +00:00
..
geometry geometry: more robust colinearity test in SHAPE_LINE_CHAIN::Simplify() 2022-06-08 16:13:15 +00:00
math Add std::hash specialization for VECTOR2I 2022-01-05 20:32:46 -08:00
bezier_curves.cpp Fix source comment / documentation typos 2021-06-09 19:32:58 +00:00
convert_basic_shapes_to_polygon.cpp Avoid duplicate points in trapezoid pads 2022-03-22 13:30:22 -07:00
md5_hash.cpp For Coverity. 2022-02-17 14:30:47 +00:00
trigo.cpp Adds uncertainty propagation to center point calc 2022-03-08 10:34:41 -08:00