An entry of a nav mesh node including the distance to the node. Used in the queue to search nearby nodes.
More...
|
float | _distSq |
| The squared distance from some reference point to the node.
|
|
VisibilityCone | _cone |
| The cone of visibility in which all agents and portals must lie to be considered a viable candidate.
|
|
unsigned int | _nodeID |
| The identifier of the node.
|
|
An entry of a nav mesh node including the distance to the node. Used in the queue to search nearby nodes.
Menge::Agents::NeighborEntry::NeighborEntry |
( |
float |
distSq, |
|
|
const VisibilityCone & |
cone, |
|
|
unsigned int |
nodeID |
|
) |
| |
|
inline |
Constructor.
- Parameters
-
distSq | The squared distance from some reference point to the nearest point on the mesh polygon. |
cone | The visibility cone, in which all agents and portals must lie, to be considered viable candidates. |
nodeID | The identifier of the navigation mesh node. |
bool Menge::Agents::NeighborEntry::operator< |
( |
const NeighborEntry & |
entry | ) |
const |
|
inline |
Comparator - provided for creating a min_heap.
- Parameters
-
entry | The other entry against which to compare this entry. |
- Returns
- True if the squared distance for this entry is less that of the given entry.
The documentation for this class was generated from the following file:
- src/menge/MengeCore/Agents/SpatialQueries/SpatialQueryNavMesh.cpp