KGrid2D::HexagonalBase Class Reference
This class contains static methods to manipulate coordinates on an 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). More...
#include <kgrid2d.h>
Inheritance diagram for KGrid2D::HexagonalBase:

Public Types | |
enum | Neighbour { Left = 0, Right, LeftUp, LeftDown, RightUp, RightDown, Nb_Neighbour } |
Static Public Methods | |
double | angle (Neighbour n) |
Neighbour | opposed (Neighbour n) |
Coord | neighbour (const Coord &c, Neighbour n) |
uint | distance (const Coord &c1, const Coord &c2) |
Detailed Description
This class contains static methods to manipulate coordinates on an 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 372 of file kgrid2d.h.
Member Enumeration Documentation
|
Identify the six neighbours.
Definition at line 378 of file kgrid2d.h. Referenced by angle(), neighbour(), KGrid2D::Hexagonal< Type >::neighbours(), and opposed(). |
Member Function Documentation
|
Definition at line 384 of file kgrid2d.h. References Neighbour. |
|
Definition at line 400 of file kgrid2d.h. References Neighbour. |
|
Definition at line 416 of file kgrid2d.h. References Neighbour. Referenced by KGrid2D::Hexagonal< Type >::neighbours(). |
|
Definition at line 433 of file kgrid2d.h. Referenced by KGrid2D::Hexagonal< Type >::neighbours(). |
The documentation for this class was generated from the following file: