KGrid2D::SquareBase Class Reference
This class contains static methods to manipulate coordinates for a square bidimensionnal grid. More...
#include <kgrid2d.h>
Inheritance diagram for KGrid2D::SquareBase:

Public Types | |
enum | Neighbour { Left = 0, Right, Up, Down, LeftUp, LeftDown, RightUp, RightDown, Nb_Neighbour } |
Static Public Member Functions | |
double | angle (Neighbour n) |
Neighbour | opposed (Neighbour n) |
bool | isDirect (Neighbour n) |
Coord | neighbour (const Coord &c, Neighbour n) |
Detailed Description
This class contains static methods to manipulate coordinates for a square bidimensionnal grid.
- Since:
- 3.2
Definition at line 234 of file kgrid2d.h.
Member Enumeration Documentation
|
Identify the eight neighbours.
Definition at line 240 of file kgrid2d.h. Referenced by opposed(). |
Member Function Documentation
|
|
|
Definition at line 264 of file kgrid2d.h. References Neighbour. |
|
|
|
Definition at line 288 of file kgrid2d.h. Referenced by KGrid2D::Square< T >::neighbours(). |
The documentation for this class was generated from the following file: