#include <kgrid2d.h>


Public Member Functions | |
| Square (uint width=0, uint height=0) | |
| Constructor. | |
| CoordList | neighbours (const Coord &c, bool insideOnly=true, bool directOnly=false) const |
| |
| Coord | toEdge (const Coord &c, Neighbour n) const |
| |
Definition at line 302 of file kgrid2d.h.
| KGrid2D::Square< T >::Square | ( | uint | width = 0, |
|
| uint | height = 0 | |||
| ) | [inline] |
| CoordList KGrid2D::Square< T >::neighbours | ( | const Coord & | c, | |
| bool | insideOnly = true, |
|||
| bool | directOnly = false | |||
| ) | const [inline] |
| c | to the given set of coordinates | |
| c | the coordinate to use as the reference point | |
| insideOnly | only add coordinates that are inside the grid. | |
| directOnly | only add the four nearest neighbours. |
Definition at line 318 of file kgrid2d.h.
References KGrid2D::SquareBase::LeftUp, KGrid2D::SquareBase::Nb_Neighbour, and KGrid2D::SquareBase::neighbour().

| Coord KGrid2D::Square< T >::toEdge | ( | const Coord & | c, | |
| Neighbour | n | |||
| ) | const [inline] |
| c | the coordinate to use as the reference point | |
| n | the direction of projection. |
Definition at line 335 of file kgrid2d.h.
References KGrid2D::SquareBase::Down, KGrid2D::SquareBase::Left, KGrid2D::SquareBase::LeftDown, KGrid2D::SquareBase::LeftUp, KGrid2D::SquareBase::Nb_Neighbour, KGrid2D::SquareBase::Right, KGrid2D::SquareBase::RightDown, KGrid2D::SquareBase::RightUp, and KGrid2D::SquareBase::Up.
1.5.3