#include <RuntimeSpatialHashGridHelper.h>
|
| ENGINE_API | FSquare2DGridHelper (const FBox &InWorldBounds, const FVector &InOrigin, int64 InCellSize) |
| |
| ENGINE_API | FSquare2DGridHelper (const FBox &InWorldBounds, const FVector &InOrigin, int64 InCellSize, bool bUseAlignedGridLevels) |
| |
| FGridLevel & | GetLowestLevel () |
| |
| FGridLevel::FGridCell & | GetAlwaysLoadedCell () |
| |
| const FGridLevel::FGridCell & | GetAlwaysLoadedCell () const |
| |
| const FGridLevel::FGridCell & | GetCell (const FGridCellCoord &InCoords) const |
| |
| bool | GetCellBounds (const FGridCellCoord &InCoords, FBox2D &OutBounds) const |
| |
| bool | GetCellGlobalCoords (const FGridCellCoord &InCoords, FGridCellCoord &OutGlobalCoords) const |
| |
| ENGINE_API void | ForEachCells (TFunctionRef< void(const FSquare2DGridHelper::FGridLevel::FGridCell &)> InOperation) const |
| |
| ENGINE_API int32 | ForEachIntersectingCells (const FBox &InBox, TFunctionRef< void(const FGridCellCoord &)> InOperation, int32 InStartLevel=0) const |
| |
| ENGINE_API int32 | ForEachIntersectingCells (const FSphere &InSphere, TFunctionRef< void(const FGridCellCoord &)> InOperation, int32 InStartLevel=0) const |
| |
| ENGINE_API int32 | ForEachIntersectingCells (const FSphericalSector &InShape, TFunctionRef< void(const FGridCellCoord &)> InOperation, int32 InStartLevel=0) const |
| |
◆ FSquare2DGridHelper() [1/2]
| FSquare2DGridHelper::FSquare2DGridHelper |
( |
const FBox & |
InWorldBounds, |
|
|
const FVector & |
InOrigin, |
|
|
int64 |
InCellSize |
|
) |
| |
◆ FSquare2DGridHelper() [2/2]
| FSquare2DGridHelper::FSquare2DGridHelper |
( |
const FBox & |
InWorldBounds, |
|
|
const FVector & |
InOrigin, |
|
|
int64 |
InCellSize, |
|
|
bool |
bUseAlignedGridLevels |
|
) |
| |
◆ ForEachCells()
◆ ForEachIntersectingCells() [1/3]
Runs a function on all intersecting cells for the provided box
- Returns
- the number of intersecting cells
◆ ForEachIntersectingCells() [2/3]
Runs a function on all intersecting cells for the provided sphere
- Returns
- the number of intersecting cells
◆ ForEachIntersectingCells() [3/3]
Runs a function on all intersecting cells for the provided spherical sector
- Returns
- the number of intersecting cells
◆ GetAlwaysLoadedCell() [1/2]
◆ GetAlwaysLoadedCell() [2/2]
◆ GetCell()
◆ GetCellBounds()
Returns the cell bounds
- Returns
- true if the specified coord was valid
◆ GetCellGlobalCoords()
Returns the cell global coordinates
- Returns
- true if the specified coord was valid
◆ GetLowestLevel()
| FGridLevel & FSquare2DGridHelper::GetLowestLevel |
( |
| ) |
|
|
inline |
◆ CellSize
| int64 FSquare2DGridHelper::CellSize |
◆ Levels
◆ Origin
| FVector FSquare2DGridHelper::Origin |
◆ WorldBounds
| FBox FSquare2DGridHelper::WorldBounds |
The documentation for this struct was generated from the following files: