kicad/include/geometry
John Beard 7acc0b89f9 Pcbnew: fix 45-degree snapping of ruler and dimension tools
This introduces a new util function in geometry_utils which snaps a vector
to axes or 45 degree lines. This can be used whenever you want to
snap a vector to these angles, but still want it to stay on a grid.

This snapping is used for the dimension tool and the ruler tool.

This is substantially simpler for two-point tools that the method
used by the line tool, which uses DIRECTION_45.

Fixes: lp:1780826
https://bugs.launchpad.net/kicad/+bug/1780826
2018-07-24 15:01:02 +01:00
..
convex_hull.h Pcbnew: Add rounded rect pad shape. 2016-04-06 20:15:49 +02:00
direction45.h router: support for board outline 2018-02-06 09:43:56 +01:00
geometry_utils.h Pcbnew: fix 45-degree snapping of ruler and dimension tools 2018-07-24 15:01:02 +01:00
poly_grid_partition.h Fix a few minor coverity warnings (not initialized members) 2017-11-11 07:25:00 +01:00
rtree.h pcbnew: Ensure Connectivity RTree gets updated 2018-06-16 21:45:55 -07:00
seg.h SEG: added Center() method 2018-03-29 12:11:35 +02:00
shape.h Setting custom pad shape to be outline for PNS 2018-05-04 08:23:20 -07:00
shape_arc.h Add SH_ARC collisions 2018-07-17 10:08:13 -07:00
shape_circle.h Add more "override" markers. 2016-09-25 13:59:41 -04:00
shape_file_io.h Fix unnecessary value parameter detected by clang-tidy. - Replace value parameter by const reference parameter or move-assignement in some cases 2018-01-09 18:55:51 -05:00
shape_index.h FIxed a few clang warnings. 2015-03-09 11:06:54 +01:00
shape_index_list.h refactoring: wrapped boost::optional in OPT<> class for the purpose of easier transition to C++17 in the future 2017-11-03 23:59:02 +01:00
shape_line_chain.h Add a clearance check for closed shape line chains 2018-05-11 15:42:41 -07:00
shape_poly_set.h OPENGL GAL: Fixed the iteration condition when drawing triangulated polyset 2018-06-23 02:05:21 +02:00
shape_rect.h Add more "override" markers. 2016-09-25 13:59:41 -04:00
shape_segment.h Add more "override" markers. 2016-09-25 13:59:41 -04:00
shape_simple.h Setting custom pad shape to be outline for PNS 2018-05-04 08:23:20 -07:00