kicad/libs/kimath/src/geometry
Tomasz Wlostowski 3aed13278d 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
2022-06-03 23:28:41 +02:00
..
circle.cpp Wide characterize libs and bitmap2component source. 2022-02-09 11:49:58 -05:00
convex_hull.cpp A bit more angle cleanup. 2022-01-18 09:48:24 +00:00
direction_45.cpp kimath: fix regression in BuildInitialTrace()/CalcArcCenter causing incorrect arcs in routed traces 2022-05-27 17:41:05 +02:00
eda_angle.cpp Fix a few issues in plotting code. Fix bug in EDA_ANGLE::IsCardinal() 2022-01-21 12:35:58 +01:00
geometry_utils.cpp More EDA_ANGLE. 2022-01-14 16:08:19 +00:00
seg.cpp geometry: use dedicated 64-bit integer square root for distance computations 2022-06-03 23:28:41 +02:00
shape.cpp Refactor all math into a new kimath library 2020-01-07 17:12:59 +00:00
shape_arc.cpp Fix rounding errors in SHAPE_ARC::Collide + fix qa tests 2022-04-11 13:46:36 +01:00
shape_collisions.cpp Shape Assertions: print the correct type names 2022-05-26 15:32:45 -04:00
shape_compound.cpp Remove unit-less angles from geometry lib APIs. 2022-01-20 21:10:04 +00:00
shape_file_io.cpp More NULL expunging. 2021-07-18 14:31:55 -04:00
shape_line_chain.cpp geometry: more robust colinearity test in SHAPE_LINE_CHAIN::Simplify() 2022-06-03 23:28:41 +02:00
shape_poly_set.cpp Initialize area check 2022-05-26 08:19:16 -07:00
shape_rect.cpp geometry: SHAPE_RECT: use SquaredDistance() for collision detection 2020-10-07 16:36:37 +02:00
shape_segment.cpp geometry: SHAPE::Format() now outputs C-like code for easy test cases... 2020-10-07 16:36:37 +02:00