KiCad PCB EDA Suite
Loading...
Searching...
No Matches
eda_shape.cpp File Reference
#include <eda_shape.h>
#include <bezier_curves.h>
#include <convert_basic_shapes_to_polygon.h>
#include <eda_draw_frame.h>
#include <geometry/shape_arc.h>
#include <geometry/shape_circle.h>
#include <geometry/shape_simple.h>
#include <geometry/shape_segment.h>
#include <geometry/shape_rect.h>
#include <macros.h>
#include <math/util.h>
#include <eda_item.h>
#include <plotters/plotter.h>
#include <api/api_enums.h>
#include <api/api_utils.h>
#include <api/common/types/base_types.pb.h>

Go to the source code of this file.

Classes

struct  EDA_SHAPE_DESC
 

Macros

#define sq(x)   pow( x, 2 )
 
#define SWAPITEM(x)   std::swap( x, image->x )
 
#define EPSILON   2
 
#define TEST(a, b)   { if( a != b ) return a - b; }
 
#define TEST_E(a, b)   { if( abs( a - b ) > EPSILON ) return a - b; }
 
#define TEST_PT(a, b)   { TEST_E( a.x, b.x ); TEST_E( a.y, b.y ); }
 

Variables

static struct EDA_SHAPE_DESC _EDA_SHAPE_DESC
 

Macro Definition Documentation

◆ EPSILON

#define EPSILON   2

◆ sq

#define sq (   x)    pow( x, 2 )

◆ SWAPITEM

#define SWAPITEM (   x)    std::swap( x, image->x )

◆ TEST

#define TEST (   a,
 
)    { if( a != b ) return a - b; }

◆ TEST_E

#define TEST_E (   a,
 
)    { if( abs( a - b ) > EPSILON ) return a - b; }

◆ TEST_PT

#define TEST_PT (   a,
 
)    { TEST_E( a.x, b.x ); TEST_E( a.y, b.y ); }

Variable Documentation

◆ _EDA_SHAPE_DESC

struct EDA_SHAPE_DESC _EDA_SHAPE_DESC
static