gwnavruntime/channel/channelcomputerconfig.h Source File
Go to the documentation of this file.
15 class AdvancedChannelComputerConfig
20 AdvancedChannelComputerConfig() { SetDefaults(); }
24 m_turnSamplingAngleDeg = 30.0f;
25 m_channelSmoothingAngleDeg = 30.0f;
26 m_minDistBetweenIntermediaryGates = 0.5f;
27 m_maxDistBetweenIntermediaryGates = 10.f;
28 m_gateCollapseWidth = 0.01f;
33 return (m_turnSamplingAngleDeg > 0.0f)
34 && (m_minDistBetweenIntermediaryGates > 0.0f)
35 && (m_maxDistBetweenIntermediaryGates > m_minDistBetweenIntermediaryGates)
36 && (m_gateCollapseWidth >= 0.0f);
39 bool operator==(
const AdvancedChannelComputerConfig& other)
const
41 return (m_turnSamplingAngleDeg == other.m_turnSamplingAngleDeg )
42 && (m_channelSmoothingAngleDeg == other.m_channelSmoothingAngleDeg )
43 && (m_minDistBetweenIntermediaryGates == other.m_minDistBetweenIntermediaryGates)
44 && (m_maxDistBetweenIntermediaryGates == other.m_maxDistBetweenIntermediaryGates)
45 && (m_gateCollapseWidth == other.m_gateCollapseWidth );
48 bool operator!=(
const AdvancedChannelComputerConfig& other)
const {
return !operator==(other); }
64 KyFloat32 m_minDistBetweenIntermediaryGates;
70 KyFloat32 m_maxDistBetweenIntermediaryGates;
81 SwapEndianness(e,
self.m_turnSamplingAngleDeg);
82 SwapEndianness(e,
self.m_channelSmoothingAngleDeg);
83 SwapEndianness(e,
self.m_minDistBetweenIntermediaryGates);
84 SwapEndianness(e,
self.m_maxDistBetweenIntermediaryGates);
85 SwapEndianness(e,
self.m_gateCollapseWidth);
99 m_advancedConfig.SetDefaults();
105 && m_advancedConfig.IsValid();
111 && m_advancedConfig == other.m_advancedConfig;
120 AdvancedChannelComputerConfig m_advancedConfig;
125 SwapEndianness(e,
self.m_channelRadius);
126 SwapEndianness(e,
self.m_advancedConfig);
Class that aggregates parameters that allow to configure the channel computation of a Bot...
Definition: channelcomputerconfig.h:89
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:132
KyFloat32 m_channelRadius
The distance between the path and the Channel borders.
Definition: channelcomputerconfig.h:119
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:27
The Autodesk Navigation namespace.
Definition: gamekitcrowddispersion.cpp:17
float KyFloat32
float
Definition: types.h:32