gwnavruntime/navmesh/celldesc.h Source File
Go to the documentation of this file.
9 #ifndef Navigation_CellDesc_H
10 #define Navigation_CellDesc_H
20 class PixelAndCellGrid;
27 void Init(const PixelAndCellGrid& pixelAndCellGrid, const
CellPos& cellPos,
KyFloat32 rasterPrecision);
28 bool operator==(const CellDesc& other) const;
32 PixelBox m_exclusivePixelBox;
33 PixelBox m_enlargedPixelBox;
38 inline
void SwapEndianness(Endianness::Target e, CellDesc& self)
40 SwapEndianness(e,
self.m_cellPos);
41 SwapEndianness(e,
self.m_exclusivePixelBox);
42 SwapEndianness(e,
self.m_enlargedPixelBox);
43 SwapEndianness(e,
self.m_exclusiveCoordBox);
44 SwapEndianness(e,
self.m_enlargedCoordBox);
45 SwapEndianness(e,
self.m_box2f);
Vec2i CellPos
A type that represents the position of a cell within a 2D grid.
Definition: navmeshtypes.h:33
Box2i CoordBox
A type that represents a bounding box in the integer 2D grid.
Definition: navmeshtypes.h:24
Definition: gamekitcrowddispersion.h:20
#define KY_DEFINE_NEW_DELETE_OPERATORS(MemStat)
This macro defines new and delete operators.
Definition: memory.h:137
float KyFloat32
Type used internally to represent a 32-bit floating-point number.
Definition: types.h:43