gwnavruntime/queries/utils/propagationnode.h Source File

propagationnode.h
Go to the documentation of this file.
1 /*
2 * Copyright 2016 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 #pragma once
12 
14 
15 namespace Kaim
16 {
17 
18 class PropagationNode
19 {
20 public:
21  PropagationNode() : m_triangleRawPtr(), m_cost(0.f) {}
22  PropagationNode(const NavTriangleRawPtr& id) : m_triangleRawPtr(id), m_cost(0.f) {}
23 
24  KY_INLINE bool operator< (const PropagationNode& node) const { return m_cost < node.m_cost; }
25 
26 public:
27  NavTriangleRawPtr m_triangleRawPtr;
28 
29  KyFloat32 m_cost;
30 };
31 
32 }
33 
34 
35 
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
float KyFloat32
float
Definition: types.h:32