![]() |
UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
|
#include <HierarchicalHashGrid2D.h>
Public Member Functions | |
| FCell () | |
| FCell (const int32 InX, const int32 InY, const int32 InLevel) | |
| bool | operator== (const FCell &RHS) const |
Public Attributes | |
| int32 | X |
| int32 | Y |
| int32 | Level |
| int32 | First = INDEX_NONE |
| int32 | ChildItemCount = 0 |
Friends | |
| uint32 | GetTypeHash (const FCell &Cell) |
Ratio in cells between consecutive levels. Cells are located based on their hash. Each cell stores linked list of items at that location and how many children are under the same location in the finer grid levels.
|
inline |
|
inline |
|
inline |
Num of children in the child cells. Returns hash based on cell location. The hash function is called a lot, favor speed over quality.
| int32 THierarchicalHashGrid2D< InNumLevels, InLevelRatio, InItemIDType >::FCell::ChildItemCount = 0 |
First item in the item linked list. (index to Items array, or INDEX_NONE)
| int32 THierarchicalHashGrid2D< InNumLevels, InLevelRatio, InItemIDType >::FCell::First = INDEX_NONE |
Location of the cell
| int32 THierarchicalHashGrid2D< InNumLevels, InLevelRatio, InItemIDType >::FCell::Level |
| int32 THierarchicalHashGrid2D< InNumLevels, InLevelRatio, InItemIDType >::FCell::X |
| int32 THierarchicalHashGrid2D< InNumLevels, InLevelRatio, InItemIDType >::FCell::Y |