Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Util
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Util/GridIndexing2.h |
| Include | #include "Util/GridIndexing2.h" |
Syntax
template<typename RealType>
struct TShiftGridIndexer2
Remarks
Convert between integer grid coordinates and scaled+translated real-valued coordinates
Variables
| Type | Name | Description | |
|---|---|---|---|
| RealType | CellSize | Real-valued size of an integer grid cell | |
| TVector2< RealType > | Origin | Real-valued origin of grid, position of integer grid origin |
Constructors
| Type | Name | Description | |
|---|---|---|---|
TShiftGridIndexer2
(
const TVector2< RealType >& origin, |
Functions
| Type | Name | Description | |
|---|---|---|---|
| TBox2< RealType > | BoxFromGrid
(
const FVector2i& GridPoint |
Compute the real-valued 2D box of an integer grid coordinates | |
| TVector2< RealType > | Convert integer grid coordinates to real-valued point | ||
| TVector2< RealType > | Convert real-valued grid coordinates to real-valued point | ||
| FVector2i | Convert real-valued point to integer grid coordinates | ||
| FIntRect | Convert real-valued 2D box to a rectangle using integer grid coordinates | ||
| FIntRect | Convert real-valued 3D box to a rectangle using integer grid coordinates |