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

Go to the source code of this file.

Functions

bool segmentIntersectsArc (const VECTOR2I &p1, const VECTOR2I &p2, const VECTOR2I &center, double radius, EDA_ANGLE startAngle, EDA_ANGLE endAngle, std::vector< VECTOR2I > *aIntersectionPoints=nullptr)
 
bool segments_intersect (const VECTOR2I &p1, const VECTOR2I &q1, const VECTOR2I &p2, const VECTOR2I &q2, std::vector< VECTOR2I > &aIntersectionPoints)
 
bool compareShapes (const CREEP_SHAPE *a, const CREEP_SHAPE *b)
 
bool areEquivalent (const CREEP_SHAPE *a, const CREEP_SHAPE *b)
 
VECTOR2I closestPointOnSegment (const VECTOR2I &A, const VECTOR2I &B, const VECTOR2I &P)
 
bool segmentIntersectsCircle (const VECTOR2I &p1, const VECTOR2I &p2, const VECTOR2I &center, double radius, std::vector< VECTOR2I > *aIntersectPoints)
 
bool SegmentIntersectsBoard (const VECTOR2I &aP1, const VECTOR2I &aP2, const std::vector< BOARD_ITEM * > &aBe, const std::vector< const BOARD_ITEM * > &aDontTestAgainst, int aMinGrooveWidth)
 
std::vector< PATH_CONNECTIONGetPaths (CREEP_SHAPE *aS1, CREEP_SHAPE *aS2, double aMaxWeight)
 

Function Documentation

◆ areEquivalent()

bool areEquivalent ( const CREEP_SHAPE * a,
const CREEP_SHAPE * b )

◆ closestPointOnSegment()

VECTOR2I closestPointOnSegment ( const VECTOR2I & A,
const VECTOR2I & B,
const VECTOR2I & P )

◆ compareShapes()

bool compareShapes ( const CREEP_SHAPE * a,
const CREEP_SHAPE * b )

◆ GetPaths()

◆ segmentIntersectsArc()

bool segmentIntersectsArc ( const VECTOR2I & p1,
const VECTOR2I & p2,
const VECTOR2I & center,
double radius,
EDA_ANGLE startAngle,
EDA_ANGLE endAngle,
std::vector< VECTOR2I > * aIntersectionPoints = nullptr )

◆ SegmentIntersectsBoard()

bool SegmentIntersectsBoard ( const VECTOR2I & aP1,
const VECTOR2I & aP2,
const std::vector< BOARD_ITEM * > & aBe,
const std::vector< const BOARD_ITEM * > & aDontTestAgainst,
int aMinGrooveWidth )

◆ segmentIntersectsCircle()

bool segmentIntersectsCircle ( const VECTOR2I & p1,
const VECTOR2I & p2,
const VECTOR2I & center,
double radius,
std::vector< VECTOR2I > * aIntersectPoints )

Definition at line 1644 of file drc_creepage_utils.cpp.

References center, circle(), and radius.

Referenced by SegmentIntersectsBoard().

◆ segments_intersect()

bool segments_intersect ( const VECTOR2I & p1,
const VECTOR2I & q1,
const VECTOR2I & p2,
const VECTOR2I & q2,
std::vector< VECTOR2I > & aIntersectionPoints )

Definition at line 62 of file drc_creepage_utils.cpp.

Referenced by SegmentIntersectsBoard().