Navigation
API > API/Runtime > API/Runtime/GeometryCore
Converts real-valued coordinates to integer grid coordinates, wrapping around outside the representable integer range.
Lacks a conversion back from the integer vector since it maps to multiple ranges, but this is frequently not needed. Also requires use of a function to iterate over a range, to ensure proper overflow.
| Name | TWrapAroundGridIndexer3 |
| Type | struct |
| Header File | /Engine/Source/Runtime/GeometryCore/Public/Util/GridIndexing3.h |
| Include Path | #include "Util/GridIndexing3.h" |
Syntax
template<typename RealType>
struct TWrapAroundGridIndexer3
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
| Util/GridIndexing3.h | |||
TWrapAroundGridIndexer3
(
RealType CellSize |
Util/GridIndexing3.h |
Variables
Public
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| CellSize | RealType | Real-valued size of an integer grid cell | Util/GridIndexing3.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
void IterateAcrossBounds
(
const TVector< RealType >& RealMin, |
Iterate across a range of indices going from the one that corresponds to RealMean to one that corresponds to RealMax. | Util/GridIndexing3.h | |
| Convert real-valued point to integer grid coordinates, wrapping around when P/CellSize falls outside the representable integer range. | Util/GridIndexing3.h |