Navigation
API > API/Runtime > API/Runtime/Chaos
| Name | TSpatialHash |
| Type | class |
| Header File | /Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/SpatialHash.h |
| Include Path | #include "Chaos/SpatialHash.h" |
Syntax
template<class T>
class TSpatialHash
Constructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
TSpatialHash
(
const TArray< TVec3< T > >& Particles |
Chaos/SpatialHash.h | ||
TSpatialHash
(
const TArray< TVec3< T > >& Particles, |
Chaos/SpatialHash.h |
Destructors
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
~TSpatialHash() |
Chaos/SpatialHash.h |
Variables
Protected
| Name | Type | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|---|
| MBoundingBox | TAABB< T, 3 > | Chaos/SpatialHash.h | ||
| MCellSize | T | Chaos/SpatialHash.h | ||
| MHashTable | TMap< int32, TArray< int32 > > | Chaos/SpatialHash.h | ||
| MNumberOfCellsX | int32 | Chaos/SpatialHash.h | ||
| MNumberOfCellsY | int32 | Chaos/SpatialHash.h | ||
| MNumberOfCellsZ | int32 | Chaos/SpatialHash.h | ||
| MParticles | TArray< TVec3< T > > | Chaos/SpatialHash.h |
Functions
Public
| Name | Remarks | Include Path | Unreal Specifiers |
|---|---|---|---|
int32 GetClosestPoint
(
const TVec3< T >& Particle |
Chaos/SpatialHash.h | ||
TArray< int32 > GetClosestPoints
(
const TVec3< T >& Particle, |
Returns all the points in MaxRadius, result not sorted. | Chaos/SpatialHash.h | |
TArray< int32 > GetClosestPoints
(
const TVec3< T >& Particle, |
Returns all the points in MaxRadius, no more than MaxCount, result always sorted. | Chaos/SpatialHash.h | |
| Chaos/SpatialHash.h | |||
void Update
(
const T Radius |
Chaos/SpatialHash.h | ||
| Chaos/SpatialHash.h |