KiCad PCB EDA Suite
lib_arc.cpp File Reference
#include <fctsys.h>
#include <gr_basic.h>
#include <macros.h>
#include <sch_draw_panel.h>
#include <plotter.h>
#include <trigo.h>
#include <base_units.h>
#include <msgpanel.h>
#include <bitmaps.h>
#include <general.h>
#include <lib_arc.h>
#include <transform.h>
#include <status_popup.h>

Go to the source code of this file.

Macros

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

Functions

static wxPoint twoPointVector (const wxPoint &startPoint, const wxPoint &endPoint)
 

Macro Definition Documentation

◆ sq

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

Function Documentation

◆ twoPointVector()

static wxPoint twoPointVector ( const wxPoint &  startPoint,
const wxPoint &  endPoint 
)
inlinestatic

Definition at line 42 of file lib_arc.cpp.

43 {
44  return endPoint - startPoint;
45 }

Referenced by LIB_ARC::CalcEdit(), LIB_ARC::CalcRadiusAngles(), and LIB_ARC::HitTest().