TSpatialHash

Windows
MacOS
Linux

References

Module

Chaos

Header

/Engine/Source/Runtime/Experimental/Chaos/Public/Chaos/SpatialHash.h

Include

#include "Chaos/SpatialHash.h"

Syntax

template<class T>
class TSpatialHash

Constructors

Name Description

Public function

TSpatialHash

(
    const TArray< TVector< T, 3 >>& Pa...
)

Public function

TSpatialHash

(
    const TArray< TVector< T, 3 >>& Pa...,
    const T Radius
)

Destructors

Name Description

Public function

~TSpatialHash()

Functions

Name Description

Public function

int32

 

GetClosestPoint

(
    const TVector< T, 3 >& Particle
)

Returns all the points in MaxRadius, result not sorted.

Public function

TArray< int3...

 

GetClosestPoints

(
    const TVector< T, 3 >& Particle,
    const T MaxRadius
)

Returns all the points in MaxRadius, result not sorted.

Public function

TArray< int3...

 

GetClosestPoints

(
    const TVector< T, 3 >& Particle,
    const T MaxRadius,
    const int32 MaxPoints
)

Returns all the points in MaxRadius, no more than MaxCount, result always sorted.

Public function

void

 

Update

(
    const TArray< TVector< T, 3 >>& Pa...
)

Public function

void

 

Update

(
    const T Radius
)

Public function

void

 

Update

(
    const TArray< TVector< T, 3 >>& Pa...,
    const T Radius
)

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss