gwnavruntime/queries/utils/propagationnode.h Source File

propagationnode.h
Go to the documentation of this file.
1 /*
2 * Copyright 2015 Autodesk, Inc. All rights reserved.
3 * Use of this software is subject to the terms of the Autodesk license agreement and any attachments or Appendices thereto provided at the time of installation or download,
4 * or which otherwise accompanies this software in either electronic or hard copy form, or which is signed by you and accepted by Autodesk.
5 */
6 
7 
8 
9 
10 
11 // Primary contact: JUBA - secondary contact: NOBODY
12 #ifndef Navigation_PropagationNode_H
13 #define Navigation_PropagationNode_H
14 
16 
17 namespace Kaim
18 {
19 
20 class PropagationNode
21 {
22 public:
23  PropagationNode() : m_triangleRawPtr(), m_cost(0.f) {}
24  PropagationNode(const NavTriangleRawPtr& id) : m_triangleRawPtr(id), m_cost(0.f) {}
25 
26  KY_INLINE bool operator< (const PropagationNode& node) const { return m_cost < node.m_cost; }
27 
28 public:
29  NavTriangleRawPtr m_triangleRawPtr;
30 
31  KyFloat32 m_cost;
32 };
33 
34 }
35 
36 
37 #endif //Navigation_PropagationNode_H
38 
Definition: gamekitcrowddispersion.h:20
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43