KGrid2D::Hexagonal< Type > Class Template Reference
This template implements a hexagonal grid where hexagons form horizontal lines:. More...
#include <kgrid2d.h>
Inheritance diagram for KGrid2D::Hexagonal< Type >:


Public Member Functions | |
Hexagonal (uint width=0, uint height=0) | |
CoordList | neighbours (const Coord &c, bool insideOnly=true) const |
CoordList | neighbours (const Coord &c, uint distance, bool all, bool insideOnly=true) const |
Detailed Description
template<class Type>
class KGrid2D::Hexagonal< Type >
This template implements a hexagonal grid where hexagons form horizontal lines:.
(0,0) (0,1) (0,2) (1,0) (1,1) (1,2) (2,0) (2,1) (2,2)
@ since 3.2
Definition at line 451 of file kgrid2d.h.
Constructor & Destructor Documentation
|
Constructor.
|
Member Function Documentation
|
Definition at line 466 of file kgrid2d.h. References QValueList::append(), KGrid2D::Generic< Type >::inside(), and KGrid2D::HexagonalBase::neighbour(). Referenced by KGrid2D::Hexagonal< Type >::neighbours(). |
|
Definition at line 485 of file kgrid2d.h. References QValueList::append(), QValueList::begin(), QValueList::const_iterator(), QValueList::end(), QValueList::find(), KGrid2D::Hexagonal< Type >::neighbours(), and QValueList::remove(). |
The documentation for this class was generated from the following file: