Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/FSquare2DGridHelper
| Name | FGrid2D |
| Type | struct |
| Header File | /Engine/Source/Runtime/Engine/Public/WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h |
| Include Path | #include "WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h" |
Syntax
struct FGrid2D
Derived Classes
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
FGrid2D
(
const FVector2D& InOrigin, |
WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CellSize | int64 | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h | ||
| GridSize | int64 | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h | ||
| Origin | FVector2D | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 ForEachIntersectingCells
(
const FBox& InBox, |
WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h | ||
int32 ForEachIntersectingCells
(
const FSphere& InSphere, |
Runs a function on all intersecting cells for the provided sphere | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h | |
int32 ForEachIntersectingCells
(
const FSphericalSector& InShape, |
Runs a function on all intersecting cells for the provided spherical sector | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h | |
int32 ForEachIntersectingCellsBreakable
(
const FBox& InBox, |
Runs a function on all intersecting cells for the provided box | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h | |
bool GetCellBounds
(
int64 InIndex, |
Returns the cell bounds | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h | |
bool GetCellBounds
(
const FGridCellCoord2& InCoords, |
Returns the cell bounds | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h | |
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 | |
bool GetCellIndex
(
const FGridCellCoord2& InCoords, |
Returns the cell index of the provided coords | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h | |
bool GetCellIndex
(
const FVector& InPos, |
Returns the cell index of the provided position | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h | |
int32 GetNumIntersectingCells
(
const FBox& InBox |
Get the number of intersecting cells of the provided box | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h | |
bool IsValidCoords
(
const FGridCellCoord2& InCoords |
Validate that the coordinates fit the grid size | WorldPartition/RuntimeSpatialHash/RuntimeSpatialHashGridHelper.h |