Browse Source
Angle and distances cleanup (preparing for angles in doubles)
Angle and distances cleanup (preparing for angles in doubles)
- Removed spurious int casts (these are truncated anyway and will break doubles) - Applied the Distance, GetLineLength, EuclideanNorm, DEG2RAD, RAD2DEG ArcTangente and NORMALIZE* functions where possible - ArcTangente now returns double and handles the 0,0 case like atan2, so it's no longer necessary to check for it before calling - Small functions in trigo moved as inlinepull/1/head
56 changed files with 236 additions and 273 deletions
-
83d-viewer/3d_aux.cpp
-
183d-viewer/3d_draw.cpp
-
33d-viewer/3d_draw_basic_functions.cpp
-
3common/class_plotter.cpp
-
6common/common_plotGERBER_functions.cpp
-
4common/convert_basic_shapes_to_polygon.cpp
-
2common/gr_basic.cpp
-
1common/pcbcommon.cpp
-
67common/trigo.cpp
-
10eeschema/lib_arc.cpp
-
5eeschema/lib_circle.cpp
-
2eeschema/sch_base_frame.cpp
-
4eeschema/transform.cpp
-
4gerbview/class_aperture_macro.cpp
-
3gerbview/class_gerber_draw_item.cpp
-
3gerbview/export_to_pcbnew.cpp
-
12gerbview/gerbview_frame.cpp
-
4gerbview/rs274d.cpp
-
4include/macros.h
-
76include/trigo.h
-
21pcbnew/autorouter/graphpcb.cpp
-
4pcbnew/autorouter/routing_matrix.cpp
-
13pcbnew/basepcbframe.cpp
-
2pcbnew/board_items_to_polygon_shape_transform.cpp
-
23pcbnew/class_dimension.cpp
-
24pcbnew/class_drawsegment.cpp
-
8pcbnew/class_drawsegment.h
-
7pcbnew/class_edge_mod.cpp
-
2pcbnew/class_module.cpp
-
11pcbnew/class_pad.cpp
-
10pcbnew/class_pad_draw_functions.cpp
-
2pcbnew/class_pcb_text.cpp
-
2pcbnew/class_text_mod.cpp
-
10pcbnew/class_track.cpp
-
6pcbnew/class_track.h
-
2pcbnew/connect.cpp
-
2pcbnew/dialogs/dialog_edit_module_text.cpp
-
5pcbnew/dialogs/dialog_orient_footprints.cpp
-
2pcbnew/dialogs/dialog_pad_properties.cpp
-
6pcbnew/dimension.cpp
-
4pcbnew/dragsegm.cpp
-
8pcbnew/drc_clearance_test_functions.cpp
-
6pcbnew/drc_marker_functions.cpp
-
3pcbnew/edgemod.cpp
-
5pcbnew/export_gencad.cpp
-
18pcbnew/export_vrml.cpp
-
10pcbnew/gen_modules_placefile.cpp
-
2pcbnew/gpcb_plugin.cpp
-
7pcbnew/magnetic_tracks_functions.cpp
-
14pcbnew/muonde.cpp
-
3pcbnew/pcad2kicadpcb_plugin/pcb_arc.cpp
-
12pcbnew/plot_brditems_plotter.cpp
-
1pcbnew/scripting/pcbnew_footprint_wizards.cpp
-
7pcbnew/specctra_export.cpp
-
4pcbnew/zones_convert_brd_items_to_polygons_with_Boost.cpp
-
4polygon/PolyLine.cpp
Write
Preview
Loading…
Cancel
Save
Reference in new issue