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
)

Select Skin
Light
Dark

Welcome to the new Unreal Engine 4 Documentation site!

We're working on lots of new features including a feedback system so you can tell us how we are doing. It's not quite ready for use in the wild yet, so head over to the Documentation Feedback forum to tell us about this page or call out any issues you are encountering in the meantime.

We'll be sure to let you know when the new system is up and running.

Post Feedback