KiCad PCB EDA Suite
Loading...
Searching...
No Matches
RN_NET::TRIANGULATOR_STATE Class Reference

Public Member Functions

void Clear ()
 
void AddNode (const std::shared_ptr< CN_ANCHOR > &aNode)
 
void Triangulate (std::vector< CN_EDGE > &mstEdges)
 

Private Member Functions

bool areNodesColinear (const std::vector< std::shared_ptr< CN_ANCHOR > > &aNodes) const
 

Private Attributes

std::multiset< std::shared_ptr< CN_ANCHOR >, CN_PTR_CMPm_allNodes
 

Detailed Description

Definition at line 137 of file ratsnest_data.cpp.

Member Function Documentation

◆ AddNode()

void RN_NET::TRIANGULATOR_STATE::AddNode ( const std::shared_ptr< CN_ANCHOR > &  aNode)
inline

Definition at line 171 of file ratsnest_data.cpp.

References m_allNodes.

◆ areNodesColinear()

bool RN_NET::TRIANGULATOR_STATE::areNodesColinear ( const std::vector< std::shared_ptr< CN_ANCHOR > > &  aNodes) const
inlineprivate

Definition at line 145 of file ratsnest_data.cpp.

References VECTOR2< T >::Cross(), and v1.

Referenced by Triangulate().

◆ Clear()

void RN_NET::TRIANGULATOR_STATE::Clear ( )
inline

Definition at line 166 of file ratsnest_data.cpp.

References m_allNodes.

◆ Triangulate()

void RN_NET::TRIANGULATOR_STATE::Triangulate ( std::vector< CN_EDGE > &  mstEdges)
inline

Definition at line 176 of file ratsnest_data.cpp.

References areNodesColinear(), and m_allNodes.

Member Data Documentation

◆ m_allNodes

std::multiset<std::shared_ptr<CN_ANCHOR>, CN_PTR_CMP> RN_NET::TRIANGULATOR_STATE::m_allNodes
private

Definition at line 140 of file ratsnest_data.cpp.

Referenced by AddNode(), Clear(), and Triangulate().


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