Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FSquare2DGridHelper > API/Runtime/Engine/FSquare2DGridHelper/FGrid2D
Overloads
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
bool GetCellCoords
(
const FVector2D& InPos, |
Returns the cell coordinates of the provided position | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h | |
bool GetCellCoords
(
const FBox2D& InBounds2D, |
Returns the cells coordinates of the provided box | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h |
GetCellCoords(const FVector2D &, FGridCellCoord2 &)
Description
Returns the cell coordinates of the provided position
| Name | GetCellCoords |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h |
| Include Path | #include "WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h" |
bool GetCellCoords
(
const FVector2D & InPos,
FGridCellCoord2 & OutCoords
) const
true if the position was inside the grid
GetCellCoords(const FBox2D &, FGridCellCoord2 &, FGridCellCoord2 &)
Description
Returns the cells coordinates of the provided box
| Name | GetCellCoords |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Public/WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h |
| Include Path | #include "WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h" |
bool GetCellCoords
(
const FBox2D & InBounds2D,
FGridCellCoord2 & OutMinCellCoords,
FGridCellCoord2 & OutMaxCellCoords
) const
true if the bounds was intersecting with the grid