gwnavruntime/queries/utils/costmultipliersubsegment.h Source File

costmultipliersubsegment.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 // Primary contact: JUBA - secondary contact: LASI
8 #ifndef Navigation_CostMultiplierSubSegment_H
9 #define Navigation_CostMultiplierSubSegment_H
10 
12 
13 
14 namespace Kaim
15 {
16 
23 class CostMultiplierSubSegment
24 {
26 
27 public:
29  m_entrancePos3f(KyFloat32MAXVAL, KyFloat32MAXVAL, KyFloat32MAXVAL),
30  m_exitPos3f(KyFloat32MAXVAL, KyFloat32MAXVAL, KyFloat32MAXVAL),
31  m_costMultiplier(-1.f) {}
32 
33 public:
34  // accessing the navTag
37  KyFloat32 m_costMultiplier;
38 };
39 
40 inline void SwapEndianness(Kaim::Endianness::Target e, CostMultiplierSubSegment& self)
41 {
42  SwapEndianness(e, self.m_entrancePos3f);
43  SwapEndianness(e, self.m_exitPos3f);
44  SwapEndianness(e, self.m_costMultiplier);
45 }
46 
47 }
48 
49 
50 #endif //Navigation_CostMultiplierSubSegment_H
51 
52 
#define KyFloat32MAXVAL
The maximum value that can be stored in the KyFloat32 variable type.
Definition: types.h:227
Vec3f m_exitPos3f
Records the ending point of the sub-segment.
Definition: costmultipliersubsegment.h:40
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
This class represents a CostMultiplier sub-segment of a ray (within a RayCastQuery or a RayCanGoQuery...
Definition: costmultipliersubsegment.h:25
Vec3f m_entrancePos3f
Records the starting point of the sub-segment.
Definition: costmultipliersubsegment.h:39
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43
This class defines a three-dimensional vector whose coordinates are stored using floating-point numbe...
Definition: vec3f.h:23