UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
FSquare2DGridHelper::FGridLevel Struct Reference

#include <RuntimeSpatialHashGridHelper.h>

+ Inheritance diagram for FSquare2DGridHelper::FGridLevel:

Classes

struct  FGridCell
 

Public Member Functions

 FGridLevel (const FVector2D &InOrigin, int64 InCellSize, int64 InGridSize, int32 InLevel)
 
FGridCellGetCell (const FGridCellCoord2 &InCoords)
 
const FGridCellGetCell (const FGridCellCoord2 &InCoords) const
 
- Public Member Functions inherited from FSquare2DGridHelper::FGrid2D
 FGrid2D (const FVector2D &InOrigin, int64 InCellSize, int64 InGridSize)
 
bool IsValidCoords (const FGridCellCoord2 &InCoords) const
 
bool GetCellBounds (int64 InIndex, FBox2D &OutBounds) const
 
bool GetCellBounds (const FGridCellCoord2 &InCoords, FBox2D &OutBounds, bool bCheckIsValidCoord=true) const
 
bool GetCellCoords (const FVector2D &InPos, FGridCellCoord2 &OutCoords) const
 
bool GetCellCoords (const FBox2D &InBounds2D, FGridCellCoord2 &OutMinCellCoords, FGridCellCoord2 &OutMaxCellCoords) const
 
bool GetCellIndex (const FGridCellCoord2 &InCoords, uint64 &OutIndex) const
 
bool GetCellIndex (const FVector &InPos, uint64 &OutIndex) const
 
int32 GetNumIntersectingCells (const FBox &InBox) const
 
int32 ForEachIntersectingCellsBreakable (const FBox &InBox, TFunctionRef< bool(const FGridCellCoord2 &)> InOperation) const
 
int32 ForEachIntersectingCells (const FBox &InBox, TFunctionRef< void(const FGridCellCoord2 &)> InOperation) const
 
int32 ForEachIntersectingCells (const FSphere &InSphere, TFunctionRef< void(const FGridCellCoord2 &)> InOperation) const
 
int32 ForEachIntersectingCells (const FSphericalSector &InShape, TFunctionRef< void(const FGridCellCoord2 &)> InOperation) const
 

Public Attributes

int32 Level
 
TArray< FGridCellCells
 
TMap< int64, int64CellsMapping
 
- Public Attributes inherited from FSquare2DGridHelper::FGrid2D
FVector2D Origin
 
int64 CellSize
 
int64 GridSize
 

Constructor & Destructor Documentation

◆ FGridLevel()

FSquare2DGridHelper::FGridLevel::FGridLevel ( const FVector2D InOrigin,
int64  InCellSize,
int64  InGridSize,
int32  InLevel 
)
inline

Member Function Documentation

◆ GetCell() [1/2]

FGridCell & FSquare2DGridHelper::FGridLevel::GetCell ( const FGridCellCoord2 InCoords)
inline

Returns the cell at the specified grid coordinate

Returns
the cell at the specified grid coordinate

◆ GetCell() [2/2]

const FGridCell & FSquare2DGridHelper::FGridLevel::GetCell ( const FGridCellCoord2 InCoords) const
inline

Returns the cell at the specified grid coordinate

Returns
the cell at the specified grid coordinate

Member Data Documentation

◆ Cells

TArray<FGridCell> FSquare2DGridHelper::FGridLevel::Cells

◆ CellsMapping

TMap<int64, int64> FSquare2DGridHelper::FGridLevel::CellsMapping

◆ Level

int32 FSquare2DGridHelper::FGridLevel::Level

The documentation for this struct was generated from the following file: