KiCad PCB EDA Suite
Loading...
Searching...
No Matches
eda_shape.cpp File Reference

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