#include <kgrid2d.h>


Public Member Functions | |
| Hexagonal (uint width=0, uint height=0) | |
| Constructor. | |
| CoordList | neighbours (const Coord &c, bool insideOnly=true) const |
| |
| CoordList | neighbours (const Coord &c, uint distance, bool all, bool insideOnly=true) const |
| |
(0,0) (0,1) (0,2)
(1,0) (1,1) (1,2)
(2,0) (2,1) (2,2)
Definition at line 438 of file kgrid2d.h.
| KGrid2D::Hexagonal< Type >::Hexagonal | ( | uint | width = 0, |
|
| uint | height = 0 | |||
| ) | [inline] |
| CoordList KGrid2D::Hexagonal< Type >::neighbours | ( | const Coord & | c, | |
| bool | insideOnly = true | |||
| ) | const [inline] |
| c | to the given set of coordinates | |
| c | the coordiante to use as the reference point | |
| insideOnly | only add coordinates that are inside the grid. |
Definition at line 453 of file kgrid2d.h.
References KGrid2D::HexagonalBase::Nb_Neighbour, and KGrid2D::HexagonalBase::neighbour().
Referenced by KGrid2D::Hexagonal< Type >::neighbours().

| CoordList KGrid2D::Hexagonal< Type >::neighbours | ( | const Coord & | c, | |
| uint | distance, | |||
| bool | all, | |||
| bool | insideOnly = true | |||
| ) | const [inline] |
| distance | of coordinate | |
| c | the coordinate to use as the reference point | |
| distance | distance to the neighbour (1 means at contact). | |
| insideOnly | only add coordinates that are inside the grid. | |
| all | returns all neighbours at distance equal and less than | |
| distance | (the original coordinate is not included). |
Definition at line 472 of file kgrid2d.h.
References KGrid2D::Hexagonal< Type >::neighbours().

1.5.3