KiCad PCB EDA Suite
CN_PTR_CMP Struct Reference

#include <ratsnest_data.h>

Public Member Functions

bool operator() (const CN_ANCHOR_PTR &aItem, const CN_ANCHOR_PTR &bItem) const
 

Detailed Description

Definition at line 47 of file ratsnest_data.h.

Member Function Documentation

◆ operator()()

bool CN_PTR_CMP::operator() ( const CN_ANCHOR_PTR aItem,
const CN_ANCHOR_PTR bItem 
) const
inline

Definition at line 49 of file ratsnest_data.h.

50  {
51  if( aItem->Pos().x == bItem->Pos().x )
52  return aItem->Pos().y < bItem->Pos().y;
53  else
54  return aItem->Pos().x < bItem->Pos().x;
55  }

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