KiCad PCB EDA Suite
shape_line_chain.cpp File Reference
#include <limits.h>
#include <math.h>
#include <map>
#include <string>
#include <clipper.hpp>
#include <core/kicad_algo.h>
#include <geometry/seg.h>
#include <geometry/circle.h>
#include <geometry/shape_line_chain.h>
#include <math/box2.h>
#include <math/util.h>
#include <math/vector2d.h>
#include <trigo.h>

Go to the source code of this file.

Classes

struct  compareOriginDistance
 

Functions

static void addIntersection (SHAPE_LINE_CHAIN::INTERSECTIONS &aIps, int aPc, const SHAPE_LINE_CHAIN::INTERSECTION &aP)
 

Function Documentation

◆ addIntersection()

static void addIntersection ( SHAPE_LINE_CHAIN::INTERSECTIONS aIps,
int  aPc,
const SHAPE_LINE_CHAIN::INTERSECTION aP 
)
inlinestatic

Definition at line 1386 of file shape_line_chain.cpp.

1388 {
1389  if( aIps.size() == 0 )
1390  {
1391  aIps.push_back( aP );
1392  return;
1393  }
1394 
1395  const auto& last = aIps.back();
1396 
1397  aIps.push_back( aP );
1398 }

Referenced by SHAPE_LINE_CHAIN::Intersect().