KiCad PCB EDA Suite
POLY_GRID_PARTITION::segHash Struct Reference

Public Member Functions

std::size_t operator() (const SEG &a) const
 

Detailed Description

Definition at line 103 of file poly_grid_partition.h.

Member Function Documentation

◆ operator()()

std::size_t POLY_GRID_PARTITION::segHash::operator() ( const SEG a) const
inline

Definition at line 105 of file poly_grid_partition.h.

106  {
107  return a.A.x + a.B.x + a.A.y + a.B.y;
108  }
VECTOR2I A
Definition: seg.h:48
VECTOR2I B
Definition: seg.h:49

References SEG::A, SEG::B, VECTOR2< T >::x, and VECTOR2< T >::y.


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