gwnavruntime/queries/utils/costmultipliersubsegment.h Source File

costmultipliersubsegment.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 #pragma once
8 
10 
11 
12 namespace Kaim
13 {
14 
22 {
23  KY_DEFINE_NEW_DELETE_OPERATORS(MemStat_Query)
24 
25 public:
29  m_costMultiplier(-1.f) {}
30 
31 public:
32  // accessing the navTag
35  KyFloat32 m_costMultiplier;
36 };
37 
38 inline void SwapEndianness(Kaim::Endianness::Target e, CostMultiplierSubSegment& self)
39 {
40  SwapEndianness(e, self.m_entrancePos3f);
41  SwapEndianness(e, self.m_exitPos3f);
42  SwapEndianness(e, self.m_costMultiplier);
43 }
44 
45 }
46 
47 
48 
49 
#define KyFloat32MAXVAL
KyFloat32 max value
Definition: types.h:71
Vec3f m_exitPos3f
Records the ending point of the sub-segment.
Definition: costmultipliersubsegment.h:34
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:27
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
This class represents a CostMultiplier sub-segment of a ray (within a RayCastQuery or a RayCanGoQuery...
Definition: costmultipliersubsegment.h:21
Vec3f m_entrancePos3f
Records the starting point of the sub-segment.
Definition: costmultipliersubsegment.h:33
float KyFloat32
float
Definition: types.h:32
3d vector using 32bits floating points.
Definition: vec3f.h:16