22template<
typename RealType>
64template<
typename RealType>
94 auto GetInt = [](RealType Real) ->
int32
102 return reinterpret_cast<int32&
>(Truncated);
147template<
typename RealType>
197template<
typename RealType>
212 const RealType InvCellSize = 1.0 /
CellSize;
214 return CeilInt(Extents * InvCellSize);
#define ensure( InExpression)
Definition AssertionMacros.h:464
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
Definition AssetRegistryState.h:50
Definition MathUtil.h:150
TWrapAroundGridIndexer3< float > FWrapAroundGridIndexer3f
Definition GridIndexing3.h:141
TShiftGridIndexer3< float > FShiftGridIndexer3f
Definition GridIndexing3.h:193
TBoundsGridIndexer3< float > FBoundsGridIndexer3f
Definition GridIndexing3.h:226
TWrapAroundGridIndexer3< double > FWrapAroundGridIndexer3d
Definition GridIndexing3.h:142
TScaleGridIndexer3< float > FScaleGridIndexer3f
Definition GridIndexing3.h:53
TScaleGridIndexer3< double > FScaleGridIndexer3d
Definition GridIndexing3.h:54
TShiftGridIndexer3< double > FShiftGridIndexer3d
Definition GridIndexing3.h:194
TBoundsGridIndexer3< double > FBoundsGridIndexer3d
Definition GridIndexing3.h:227
Definition AdvancedWidgetsModule.cpp:13
U16 Index
Definition radfft.cpp:71
Definition NumericLimits.h:41
Definition IntVectorTypes.h:252
static FVector3i One()
Definition IntVectorTypes.h:330
Definition BoxTypes.h:247
Definition GridIndexing3.h:199
TBoundsGridIndexer3(const TAxisAlignedBox3< RealType > &Bounds, RealType CellSize)
Definition GridIndexing3.h:205
TVector< RealType > BoundsMax
Definition GridIndexing3.h:203
FVector3i GridResolution() const
Definition GridIndexing3.h:210
static FVector3i CeilInt(const TVector< RealType > &V)
Definition GridIndexing3.h:217
Definition GridIndexing3.h:24
TScaleGridIndexer3()
Definition GridIndexing3.h:28
TScaleGridIndexer3(RealType CellSize)
Definition GridIndexing3.h:32
RealType CellSize
Definition GridIndexing3.h:26
FVector3i ToGrid(const TVector< RealType > &P) const
Definition GridIndexing3.h:39
TVector< RealType > FromGrid(const FVector3i &GridPoint) const
Definition GridIndexing3.h:48
Definition GridIndexing3.h:149
TVector< RealType > Origin
Definition GridIndexing3.h:153
RealType CellSize
Definition GridIndexing3.h:151
TShiftGridIndexer3()
Definition GridIndexing3.h:155
TVector< RealType > FromGrid(const TVector< RealType > &RealGridPoint) const
Definition GridIndexing3.h:185
TVector< RealType > FromGrid(const FVector3i &gridpoint) const
Definition GridIndexing3.h:176
FVector3i ToGrid(const TVector< RealType > &point) const
Definition GridIndexing3.h:167
TShiftGridIndexer3(const TVector< RealType > &origin, RealType cellSize)
Definition GridIndexing3.h:160
Definition GridIndexing3.h:66
RealType CellSize
Definition GridIndexing3.h:68
TWrapAroundGridIndexer3()
Definition GridIndexing3.h:70
FVector3i ToGrid(const TVector< RealType > &P) const
Definition GridIndexing3.h:84
void IterateAcrossBounds(const TVector< RealType > &RealMin, const TVector< RealType > &RealMax, TFunctionRef< bool(const FVector3i &Index)> ShouldContinue) const
Definition GridIndexing3.h:115
TWrapAroundGridIndexer3(RealType CellSize)
Definition GridIndexing3.h:74
T Z
Definition Vector.h:68
T Y
Definition Vector.h:65
T X
Definition Vector.h:62