KiCad PCB EDA Suite
FractureEdge Struct Reference

Public Member Functions

 FractureEdge (int y=0)
 
 FractureEdge (bool connected, const VECTOR2I &p1, const VECTOR2I &p2)
 
bool matches (int y) const
 

Public Attributes

bool m_connected
 
VECTOR2I m_p1
 
VECTOR2I m_p2
 
FractureEdgem_next
 

Detailed Description

Definition at line 840 of file shape_poly_set.cpp.

Constructor & Destructor Documentation

◆ FractureEdge() [1/2]

FractureEdge::FractureEdge ( int  y = 0)
inline

Definition at line 842 of file shape_poly_set.cpp.

842  :
843  m_connected( false ),
844  m_next( nullptr )
845  {
846  m_p1.x = m_p2.y = y;
847  }
FractureEdge * m_next

◆ FractureEdge() [2/2]

FractureEdge::FractureEdge ( bool  connected,
const VECTOR2I p1,
const VECTOR2I p2 
)
inline

Definition at line 849 of file shape_poly_set.cpp.

849  :
850  m_connected( connected ),
851  m_p1( p1 ),
852  m_p2( p2 ),
853  m_next( nullptr )
854  {
855  }
FractureEdge * m_next

Member Function Documentation

◆ matches()

bool FractureEdge::matches ( int  y) const
inline

Definition at line 857 of file shape_poly_set.cpp.

858  {
859  return ( y >= m_p1.y || y >= m_p2.y ) && ( y <= m_p1.y || y <= m_p2.y );
860  }

Member Data Documentation

◆ m_connected

bool FractureEdge::m_connected

Definition at line 862 of file shape_poly_set.cpp.

Referenced by SHAPE_POLY_SET::fractureSingle(), and processEdge().

◆ m_next

FractureEdge* FractureEdge::m_next

Definition at line 865 of file shape_poly_set.cpp.

Referenced by SHAPE_POLY_SET::fractureSingle(), and processEdge().

◆ m_p1

VECTOR2I FractureEdge::m_p1

Definition at line 863 of file shape_poly_set.cpp.

Referenced by SHAPE_POLY_SET::fractureSingle(), and processEdge().

◆ m_p2

VECTOR2I FractureEdge::m_p2

Definition at line 864 of file shape_poly_set.cpp.

Referenced by processEdge().


The documentation for this struct was generated from the following file: