UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
RenderingSpatialHash::TLocation< ScalarType > Struct Template Reference

#include <RenderingSpatialHash.h>

Public Types

using FIntVector3 = UE::Math::TIntVector3< ScalarType >
 

Public Member Functions

 TLocation ()
 
template<typename ScalarBType >
 TLocation (const TLocation< ScalarBType > &InLoc)
 
template<typename ScalarBType >
 TLocation (const UE::Math::TIntVector3< ScalarBType > &InCoord, int32 InLevel)
 
bool operator== (const TLocation &Other) const
 
bool operator!= (const TLocation &Other) const
 
TLocation operator+ (const TLocation &RHS) const
 
TLocation operator- (const TLocation &RHS) const
 

Public Attributes

FIntVector3 Coord
 
int32 Level
 

Friends

uint32 GetTypeHash (const TLocation &CellLocation)
 

Detailed Description

template<typename ScalarType>
struct RenderingSpatialHash::TLocation< ScalarType >

Describes an object location in the rendering hierarchical spatial hash grid. The location cosists of an integer 3D coordinate and a Level which is derived such that the size of the bounds are at most 1 (integer) unit at that level. Put differently, the Level is calculated as the FloorLog2(Size).

Member Typedef Documentation

◆ FIntVector3

template<typename ScalarType >
using RenderingSpatialHash::TLocation< ScalarType >::FIntVector3 = UE::Math::TIntVector3<ScalarType>

Constructor & Destructor Documentation

◆ TLocation() [1/3]

template<typename ScalarType >
RenderingSpatialHash::TLocation< ScalarType >::TLocation ( )
inline

◆ TLocation() [2/3]

template<typename ScalarType >
template<typename ScalarBType >
RenderingSpatialHash::TLocation< ScalarType >::TLocation ( const TLocation< ScalarBType > &  InLoc)
inlineexplicit

◆ TLocation() [3/3]

template<typename ScalarType >
template<typename ScalarBType >
RenderingSpatialHash::TLocation< ScalarType >::TLocation ( const UE::Math::TIntVector3< ScalarBType > &  InCoord,
int32  InLevel 
)
inlineexplicit

Member Function Documentation

◆ operator!=()

template<typename ScalarType >
bool RenderingSpatialHash::TLocation< ScalarType >::operator!= ( const TLocation< ScalarType > &  Other) const
inline

◆ operator+()

template<typename ScalarType >
TLocation RenderingSpatialHash::TLocation< ScalarType >::operator+ ( const TLocation< ScalarType > &  RHS) const
inline

◆ operator-()

template<typename ScalarType >
TLocation RenderingSpatialHash::TLocation< ScalarType >::operator- ( const TLocation< ScalarType > &  RHS) const
inline

◆ operator==()

template<typename ScalarType >
bool RenderingSpatialHash::TLocation< ScalarType >::operator== ( const TLocation< ScalarType > &  Other) const
inline

Friends And Related Symbol Documentation

◆ GetTypeHash

template<typename ScalarType >
uint32 GetTypeHash ( const TLocation< ScalarType > &  CellLocation)
friend

Member Data Documentation

◆ Coord

template<typename ScalarType >
FIntVector3 RenderingSpatialHash::TLocation< ScalarType >::Coord

◆ Level

template<typename ScalarType >
int32 RenderingSpatialHash::TLocation< ScalarType >::Level

The documentation for this struct was generated from the following file: