TPointHashGrid2d::FindNearestInRadius

Find nearest point in grid, within a given sphere, without locking / thread-safety.

Windows
MacOS
Linux

References

Module

GeometricObjects

Header

/Engine/Plugins/Experimental/GeometryProcessing/Source/GeometricObjects/Public/Spatial/PointHashGrid2.h

Include

#include "Spatial/PointHashGrid2.h"

Syntax

TPair< PointDataType, double > FindNearestInRadius
(
    const FVector2d & QueryPoint,
    double Radius,
    TFunction< double(const PointDataType &)> DistanceSqFunc,
    TFunction< bool> IgnoreFunc
) const

Remarks

Find nearest point in grid, within a given sphere, without locking / thread-safety.

Returns

the found pair (Value,DistanceFunc(Value)), or (InvalidValue,MaxDouble) if not found

Parameters

Parameter

Description

QueryPoint

the center of the query sphere

Radius

the radius of the query sphere

DistanceFunc

Function you provide which measures the distance between QueryPoint and a Value

IgnoreFunc

optional Function you may provide which will result in a Value being ignored if IgnoreFunc(Value) returns true

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