KGrid2D::SquareBase Class Reference
#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 | |
static double | angle (Neighbour n) |
static Neighbour | opposed (Neighbour n) |
static bool | isDirect (Neighbour n) |
static 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
Member Enumeration Documentation
Member Function Documentation
static double KGrid2D::SquareBase::angle | ( | Neighbour | n | ) | [inline, static] |
static bool KGrid2D::SquareBase::isDirect | ( | Neighbour | n | ) | [inline, static] |
static Coord KGrid2D::SquareBase::neighbour | ( | const Coord & | c, |
Neighbour | n | ||
) | [inline, static] |
static Neighbour KGrid2D::SquareBase::opposed | ( | Neighbour | n | ) | [inline, static] |
The documentation for this class was generated from the following file: