kicad/qa/tests/libs/kimath
John Beard fa7e842c8c Rework item distribution
This splits the tool into two separate tools: by center and
by even gaps. Previously, this was automatically decided, based on
if the items could have any gaps between them. This was unintuitive
as it would appear to arrange by centre point sometimes but not others.
When items aren't all the same width, the results can then be very
different, based only on the starting positions.

The new behaviour is to have a dedicated tool for each, which echos
how graphical programs like Inkscape manage this.

The by-gaps method is then extended to work for overlapping items
(when items overlap, the overlaps are made equal). The logic is
centralised in kimath/geometry, and some QA is added. This should
make it easier to extend to eeschema, for example.

This also (attempts to) address some rounding issues which could
cause minor, but compounding, errors to build up along the list
of items.

Also, fix bugs in the collection filtering - previously items
like markers were filtered out only after the selection size
was used to compute the gaps between items.
2024-05-05 03:35:09 +08:00
..
geometry Rework item distribution 2024-05-05 03:35:09 +08:00
math Fix errant typecast in VECTOR2<T>::Resize 2023-05-29 19:34:40 -04:00
CMakeLists.txt Rework item distribution 2024-05-05 03:35:09 +08:00
kimath_test_module.cpp
test_kimath.cpp QA: show more info in TestCalcArcCenter3Pts. 2023-11-25 20:09:51 +03:00