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 46 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 48 of file ratsnest_data.h.

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

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