Navigation
API > API/Runtime > API/Runtime/AIModule > API/Runtime/AIModule/THierarchicalHashGrid2D
Description
Calculates cell based query rectangle. The bounds are expanded by half grid cell size because the items are stored for only one cell based on their center and side. For that reason the items can overlap the neighbor cells by half the cell size.
| Name | CalcQueryBounds |
| Type | function |
| Header File | /Engine/Source/Runtime/AIModule/Public/HierarchicalHashGrid2D.h |
| Include Path | #include "HierarchicalHashGrid2D.h" |
FCellRect CalcQueryBounds
(
const FBox & Bounds,
const int32 Level
) const
Quantized rectangle representing the cell bounds at specific level of the tree, coordinates inclusive.
Parameters
| Name | Remarks |
|---|---|
| Bounds | Query bounding box to quantize. |
| Level | Which level of the tree the to calculate the bounds for |