gwnavruntime/navmesh/blobs/flooraltituderange.h Source File
Go to the documentation of this file.
9 #ifndef Navigation_FloorAltitudeRange_H
10 #define Navigation_FloorAltitudeRange_H
54 SwapEndianness(e,
self.m_minZ);
55 SwapEndianness(e,
self.m_maxZ);
64 return operand1 * operand2 > 0.f;
77 return operand1 * operand2 > 0.f;
80 KY_INLINE
void FloorAltitudeRange::Update(
KyFloat32 altitude)
89 #endif //Navigation_FloorAltitudeRange_H
bool DoesIntersect(const FloorAltitudeRange &other) const
Returns true if the range of altitudes represented by this object intersects the range represented by...
Definition: flooraltituderange.h:69
Represents the range of altitudes covered by a single NavFloorBlob.
Definition: flooraltituderange.h:18
KyFloat32 m_minZ
Stores the minimum altitude covered by this range. Do not modify.
Definition: flooraltituderange.h:48
#define KyFloat32MAXVAL
The maximum value that can be stored in the KyFloat32 variable type.
Definition: types.h:227
T Min(const T &a, const T &b)
Returns the lesser of the two specified values.
Definition: fastmath.h:113
Target
Enumerates the possible endianness types relative to the current platform.
Definition: endianness.h:35
bool IsAltitudeInside(KyFloat32 altitude, KyFloat32 toleranceAboveFloor, KyFloat32 toleranceBelowFloor) const
Returns true if the specified coordinates are within the range of altitudes represented by this objec...
Definition: flooraltituderange.h:61
T Max(const T &a, const T &b)
Returns the greater of the two specified values.
Definition: fastmath.h:121
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
KyFloat32 m_maxZ
Stores the maximum altitude covered by this range. Do not modify.
Definition: flooraltituderange.h:49
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43
KyFloat32 Fsel(KyFloat32 cmp, KyFloat32 v1, KyFloat32 v2)
Ifcmp is greater than 0, returnsv1. Otherwise, returnsv2.
Definition: fastmath.h:58