Menge
Modular Pedestrian Simulation Framework for Research and Development
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Public Attributes | List of all members
Menge::Agents::NeighborEntry Class Reference

An entry of a nav mesh node including the distance to the node. Used in the queue to search nearby nodes. More...

Public Member Functions

 NeighborEntry (float distSq, const VisibilityCone &cone, unsigned int nodeID)
 Constructor. More...
 
bool operator< (const NeighborEntry &entry) const
 Comparator - provided for creating a min_heap. More...
 

Public Attributes

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.
 

Detailed Description

An entry of a nav mesh node including the distance to the node. Used in the queue to search nearby nodes.

Constructor & Destructor Documentation

Menge::Agents::NeighborEntry::NeighborEntry ( float  distSq,
const VisibilityCone cone,
unsigned int  nodeID 
)
inline

Constructor.

Parameters
distSqThe squared distance from some reference point to the nearest point on the mesh polygon.
coneThe visibility cone, in which all agents and portals must lie, to be considered viable candidates.
nodeIDThe identifier of the navigation mesh node.

Member Function Documentation

bool Menge::Agents::NeighborEntry::operator< ( const NeighborEntry entry) const
inline

Comparator - provided for creating a min_heap.

Parameters
entryThe 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: