The Node class defines a cell of grid (see Map class)
More...
#include <Geom.h>
|
double | F |
| F = g + h. Value for A* based algorithms. More...
|
|
double | g |
| g-value of node for A* based algorithms. More...
|
|
double | H |
| h-value of node for A* based algorithms. More...
|
|
int | i |
| The number of row. Part of (i,j) address of cell on grid. More...
|
|
int | j |
| The number of column. Part of (i,j) address of cell on grid. More...
|
|
Node * | parent |
| The node from which the transition to this node was made. Value for A* based algorithms. More...
|
|
The Node class defines a cell of grid (see Map class)
Definition at line 21 of file Geom.h.
Node::Node |
( |
int |
i = 0 , |
|
|
int |
j = 0 , |
|
|
Node * |
p = nullptr , |
|
|
double |
g = 0 , |
|
|
double |
h = 0 |
|
) |
| |
|
inline |
Node constructor with parameters.
- Parameters
-
i | The number of row. Part of (i,j) address of cell on grid. |
j | The number of column. Part of (i,j) address of cell on grid. |
p | The node from which the transition to this node was made. Optional. Value for A* based algorithms. |
g | g-value of node for A* based algorithms. Optional. |
h | h-value of node for A* based algorithms. Optional. |
Definition at line 39 of file Geom.h.
bool Node::operator!= |
( |
const Node & |
other | ) |
const |
|
inline |
operator !=
- Parameters
-
- Returns
- Inequality of nodes addresses
Definition at line 424 of file Geom.h.
bool Node::operator== |
( |
const Node & |
another | ) |
const |
|
inline |
operator ==
- Parameters
-
- Returns
- Equality of nodes addresses
Definition at line 419 of file Geom.h.
F = g + h. Value for A* based algorithms.
Definition at line 28 of file Geom.h.
g-value of node for A* based algorithms.
Definition at line 26 of file Geom.h.
h-value of node for A* based algorithms.
Definition at line 27 of file Geom.h.
The number of row. Part of (i,j) address of cell on grid.
Definition at line 24 of file Geom.h.
The number of column. Part of (i,j) address of cell on grid.
Definition at line 25 of file Geom.h.
The node from which the transition to this node was made. Value for A* based algorithms.
Definition at line 29 of file Geom.h.
The documentation for this class was generated from the following file: