UDocumentation UE5.7 10.02.2026 (Source)
API documentation for Unreal Engine 5.7
Chaos::TSpatialHash< T > Class Template Reference

#include <SpatialHash.h>

Public Member Functions

 TSpatialHash (const TArray< TVec3< T > > &Particles, const T Radius)
 
 TSpatialHash (const TArray< TVec3< T > > &Particles)
 
 ~TSpatialHash ()
 
void Update (const TArray< TVec3< T > > &Particles, const T Radius)
 
void Update (const TArray< TVec3< T > > &Particles)
 
void Update (const T Radius)
 
TArray< int32GetClosestPoints (const TVec3< T > &Particle, const T MaxRadius)
 
TArray< int32GetClosestPoints (const TVec3< T > &Particle, const T MaxRadius, const int32 MaxPoints)
 
int32 GetClosestPoint (const TVec3< T > &Particle)
 

Constructor & Destructor Documentation

◆ TSpatialHash() [1/2]

template<class T >
Chaos::TSpatialHash< T >::TSpatialHash ( const TArray< TVec3< T > > &  Particles,
const T  Radius 
)
inline

◆ TSpatialHash() [2/2]

template<class T >
Chaos::TSpatialHash< T >::TSpatialHash ( const TArray< TVec3< T > > &  Particles)
inline

◆ ~TSpatialHash()

template<class T >
Chaos::TSpatialHash< T >::~TSpatialHash ( )
inline

Member Function Documentation

◆ GetClosestPoint()

template<class T >
int32 Chaos::TSpatialHash< T >::GetClosestPoint ( const TVec3< T > &  Particle)

◆ GetClosestPoints() [1/2]

template<class T >
TArray< int32 > Chaos::TSpatialHash< T >::GetClosestPoints ( const TVec3< T > &  Particle,
const T  MaxRadius 
)

◆ GetClosestPoints() [2/2]

template<class T >
TArray< int32 > Chaos::TSpatialHash< T >::GetClosestPoints ( const TVec3< T > &  Particle,
const T  MaxRadius,
const int32  MaxPoints 
)

◆ Update() [1/3]

template<class T >
void Chaos::TSpatialHash< T >::Update ( const T  Radius)

◆ Update() [2/3]

template<class T >
void Chaos::TSpatialHash< T >::Update ( const TArray< TVec3< T > > &  Particles)

◆ Update() [3/3]

template<class T >
void Chaos::TSpatialHash< T >::Update ( const TArray< TVec3< T > > &  Particles,
const T  Radius 
)

The documentation for this class was generated from the following files: