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 71 of file poly_grid_partition.h.

Member Function Documentation

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

Definition at line 73 of file poly_grid_partition.h.

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

74  {
75  return a.A.x + a.B.x + a.A.y + a.B.y;
76  }
VECTOR2I A
Definition: seg.h:46
VECTOR2I B
Definition: seg.h:47

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