15template <
typename ScalarType>
24 template <
typename ScalarBType>
31 template <
typename ScalarBType>
40 using UScalarType = std::make_unsigned_t<ScalarType>;
111 Result.Level = Level;
135 Level = FMath::Max(Level, FirstLevel);
#define checkSlow(expr)
Definition AssertionMacros.h:332
UE_FORCEINLINE_HINT TSharedRef< CastToType, Mode > StaticCastSharedRef(TSharedRef< CastFromType, Mode > const &InSharedRef)
Definition SharedPointer.h:127
#define FVector
Definition IOSSystemIncludes.h:8
UE::Math::TVector< double > FVector3d
Definition MathFwd.h:60
uint32 Size
Definition VulkanMemory.cpp:4034
Definition InstanceDataUpdateUtils.h:439
int32 CalcLevelFromRadius(double Radius)
Definition RenderingSpatialHash.h:91
FLocation64 ToCellLoc(int32 Level, const FVector &WorldPos)
Definition RenderingSpatialHash.h:107
FLocation64 ToLevel(const FLocation64 &Loc, int32 Level)
Definition RenderingSpatialHash.h:144
FVector3d CalcWorldPosition(const FLocation64 &Loc)
Definition RenderingSpatialHash.h:139
FLocation64 CalcLevelAndLocation(const FBoxSphereBounds &BoxSphereBounds)
Definition RenderingSpatialHash.h:117
int32 CalcLevel(double Size)
Definition RenderingSpatialHash.h:79
double GetRecCellSize(int32 Level)
Definition RenderingSpatialHash.h:102
FLocation64 CalcLevelAndLocationClamped(const FVector3d &Center, double Radius, int32 FirstLevel)
Definition RenderingSpatialHash.h:131
double GetCellSize(int32 Level)
Definition RenderingSpatialHash.h:96
Definition AdvancedWidgetsModule.cpp:13
Definition RenderingSpatialHash.h:17
UE::Math::TIntVector3< ScalarType > FIntVector3
Definition RenderingSpatialHash.h:18
FIntVector3 Coord
Definition RenderingSpatialHash.h:19
bool operator!=(const TLocation &Other) const
Definition RenderingSpatialHash.h:50
TLocation(const UE::Math::TIntVector3< ScalarBType > &InCoord, int32 InLevel)
Definition RenderingSpatialHash.h:32
TLocation()
Definition RenderingSpatialHash.h:22
TLocation operator+(const TLocation &RHS) const
Definition RenderingSpatialHash.h:55
TLocation(const TLocation< ScalarBType > &InLoc)
Definition RenderingSpatialHash.h:25
friend uint32 GetTypeHash(const TLocation &CellLocation)
Definition RenderingSpatialHash.h:38
TLocation operator-(const TLocation &RHS) const
Definition RenderingSpatialHash.h:65
bool operator==(const TLocation &Other) const
Definition RenderingSpatialHash.h:45
int32 Level
Definition RenderingSpatialHash.h:20
Definition BoxSphereBounds.h:25