Move EDA_ANGLE to KiMath lib
KiMath should only depend on itself not on other elements in the tree
This commit is contained in:
parent
de006fc010
commit
22a77d3556
|
@ -336,7 +336,6 @@ set( COMMON_SRCS
|
||||||
dialog_shim.cpp
|
dialog_shim.cpp
|
||||||
gr_text.cpp
|
gr_text.cpp
|
||||||
dsnlexer.cpp
|
dsnlexer.cpp
|
||||||
eda_angle.cpp
|
|
||||||
eda_base_frame.cpp
|
eda_base_frame.cpp
|
||||||
eda_dde.cpp
|
eda_dde.cpp
|
||||||
eda_doc.cpp
|
eda_doc.cpp
|
||||||
|
|
|
@ -26,12 +26,12 @@
|
||||||
#define GERBER_DRAW_ITEM_H
|
#define GERBER_DRAW_ITEM_H
|
||||||
|
|
||||||
#include <eda_item.h>
|
#include <eda_item.h>
|
||||||
#include <eda_angle.h>
|
|
||||||
#include <layer_ids.h>
|
#include <layer_ids.h>
|
||||||
#include <gr_basic.h>
|
#include <gr_basic.h>
|
||||||
#include <gbr_netlist_metadata.h>
|
#include <gbr_netlist_metadata.h>
|
||||||
#include <dcode.h>
|
#include <dcode.h>
|
||||||
#include <geometry/shape_poly_set.h>
|
#include <geometry/shape_poly_set.h>
|
||||||
|
#include <geometry/eda_angle.h>
|
||||||
|
|
||||||
class GERBER_FILE_IMAGE;
|
class GERBER_FILE_IMAGE;
|
||||||
class GBR_LAYOUT;
|
class GBR_LAYOUT;
|
||||||
|
|
|
@ -25,8 +25,8 @@
|
||||||
#define PCBNEW_ARRAY_OPTIONS__H
|
#define PCBNEW_ARRAY_OPTIONS__H
|
||||||
|
|
||||||
#include <math/vector2d.h>
|
#include <math/vector2d.h>
|
||||||
#include <eda_angle.h>
|
|
||||||
#include <array_axis.h>
|
#include <array_axis.h>
|
||||||
|
#include <geometry/eda_angle.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Options that govern the setup of an "array" of multiple item.
|
* Options that govern the setup of an "array" of multiple item.
|
||||||
|
|
|
@ -35,9 +35,9 @@
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
#include <eda_units.h>
|
#include <eda_units.h>
|
||||||
#include <eda_angle.h>
|
|
||||||
#include <convert_to_biu.h>
|
#include <convert_to_biu.h>
|
||||||
#include <math/vector2d.h>
|
#include <math/vector2d.h>
|
||||||
|
#include <geometry/eda_angle.h>
|
||||||
|
|
||||||
//TODO: Abstract Base Units to a single class
|
//TODO: Abstract Base Units to a single class
|
||||||
|
|
||||||
|
|
|
@ -28,12 +28,12 @@
|
||||||
|
|
||||||
#include <eda_item.h>
|
#include <eda_item.h>
|
||||||
#include <eda_units.h>
|
#include <eda_units.h>
|
||||||
#include <eda_angle.h>
|
|
||||||
#include <convert_to_biu.h>
|
#include <convert_to_biu.h>
|
||||||
#include <gr_basic.h>
|
#include <gr_basic.h>
|
||||||
#include <layer_ids.h>
|
#include <layer_ids.h>
|
||||||
#include <geometry/geometry_utils.h>
|
#include <geometry/geometry_utils.h>
|
||||||
#include <stroke_params.h>
|
#include <stroke_params.h>
|
||||||
|
#include <geometry/eda_angle.h>
|
||||||
|
|
||||||
class BOARD;
|
class BOARD;
|
||||||
class BOARD_ITEM_CONTAINER;
|
class BOARD_ITEM_CONTAINER;
|
||||||
|
|
|
@ -27,9 +27,9 @@
|
||||||
|
|
||||||
#include <memory>
|
#include <memory>
|
||||||
#include <math/box2.h>
|
#include <math/box2.h>
|
||||||
#include <eda_angle.h>
|
|
||||||
#include <geometry/shape_poly_set.h>
|
#include <geometry/shape_poly_set.h>
|
||||||
#include <wx/debug.h>
|
#include <wx/debug.h>
|
||||||
|
#include "../../libs/kimath/include/geometry/eda_angle.h"
|
||||||
|
|
||||||
|
|
||||||
namespace KIFONT
|
namespace KIFONT
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#include <wx/log.h>
|
#include <wx/log.h>
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <math/vector2d.h>
|
#include <math/vector2d.h>
|
||||||
#include <eda_angle.h>
|
#include "../../libs/kimath/include/geometry/eda_angle.h"
|
||||||
|
|
||||||
class EDA_TEXT;
|
class EDA_TEXT;
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@ set( KIMATH_SRCS
|
||||||
src/md5_hash.cpp
|
src/md5_hash.cpp
|
||||||
src/trigo.cpp
|
src/trigo.cpp
|
||||||
|
|
||||||
|
src/geometry/eda_angle.cpp
|
||||||
src/geometry/circle.cpp
|
src/geometry/circle.cpp
|
||||||
src/geometry/convex_hull.cpp
|
src/geometry/convex_hull.cpp
|
||||||
src/geometry/direction_45.cpp
|
src/geometry/direction_45.cpp
|
||||||
|
|
|
@ -32,8 +32,8 @@
|
||||||
|
|
||||||
#include <math.h> // for copysign
|
#include <math.h> // for copysign
|
||||||
#include <stdlib.h> // for abs
|
#include <stdlib.h> // for abs
|
||||||
#include <eda_angle.h>
|
|
||||||
#include <math/vector2d.h>
|
#include <math/vector2d.h>
|
||||||
|
#include <geometry/eda_angle.h>
|
||||||
|
|
||||||
class EDA_RECT;
|
class EDA_RECT;
|
||||||
|
|
||||||
|
|
|
@ -28,8 +28,8 @@
|
||||||
|
|
||||||
#include <geometry/shape.h>
|
#include <geometry/shape.h>
|
||||||
#include <convert_to_biu.h>
|
#include <convert_to_biu.h>
|
||||||
#include <eda_angle.h>
|
|
||||||
#include <math/vector2d.h> // for VECTOR2I
|
#include <math/vector2d.h> // for VECTOR2I
|
||||||
|
#include <geometry/eda_angle.h>
|
||||||
|
|
||||||
class SHAPE_LINE_CHAIN;
|
class SHAPE_LINE_CHAIN;
|
||||||
|
|
||||||
|
|
|
@ -26,7 +26,7 @@
|
||||||
|
|
||||||
#include <cmath>
|
#include <cmath>
|
||||||
#include <math/vector2d.h>
|
#include <math/vector2d.h>
|
||||||
#include <eda_angle.h>
|
#include <geometry/eda_angle.h>
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Test if \a aTestPoint is on line defined by \a aSegStart and \a aSegEnd.
|
* Test if \a aTestPoint is on line defined by \a aSegStart and \a aSegEnd.
|
||||||
|
|
|
@ -18,7 +18,7 @@
|
||||||
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
* with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#include <eda_angle.h>
|
#include <geometry/eda_angle.h>
|
||||||
|
|
||||||
|
|
||||||
EDA_ANGLE EDA_ANGLE::m_Angle0 = EDA_ANGLE( 0, DEGREES_T );
|
EDA_ANGLE EDA_ANGLE::m_Angle0 = EDA_ANGLE( 0, DEGREES_T );
|
|
@ -29,10 +29,10 @@
|
||||||
#include <zones.h>
|
#include <zones.h>
|
||||||
#include <board_connected_item.h>
|
#include <board_connected_item.h>
|
||||||
#include <convert_to_biu.h>
|
#include <convert_to_biu.h>
|
||||||
#include <eda_angle.h>
|
|
||||||
#include <geometry/shape_poly_set.h>
|
#include <geometry/shape_poly_set.h>
|
||||||
#include <geometry/shape_compound.h>
|
#include <geometry/shape_compound.h>
|
||||||
#include <pad_shapes.h>
|
#include <pad_shapes.h>
|
||||||
|
#include <geometry/eda_angle.h>
|
||||||
|
|
||||||
class PCB_SHAPE;
|
class PCB_SHAPE;
|
||||||
class PARAM_CFG;
|
class PARAM_CFG;
|
||||||
|
|
|
@ -25,7 +25,7 @@
|
||||||
#define TOOL_EVENT_UTILS_H
|
#define TOOL_EVENT_UTILS_H
|
||||||
|
|
||||||
#include <tool/tool_interactive.h>
|
#include <tool/tool_interactive.h>
|
||||||
#include <eda_angle.h>
|
#include <geometry/eda_angle.h>
|
||||||
|
|
||||||
|
|
||||||
class PCB_BASE_EDIT_FRAME;
|
class PCB_BASE_EDIT_FRAME;
|
||||||
|
|
Loading…
Reference in New Issue