Navigation
API > API/Runtime > API/Runtime/GeometryCore > API/Runtime/GeometryCore/Spatial > API/Runtime/GeometryCore/Spatial/TPointHashGrid2
References
| Module | GeometryCore |
| Header | /Engine/Source/Runtime/GeometryCore/Public/Spatial/PointHashGrid2.h |
| Include | #include "Spatial/PointHashGrid2.h" |
TPair < PointDataType, RealType > FindNearestInRadius
(
const TVector2 < RealType > & QueryPoint,
RealType Radius,
TFunctionRef < RealType> DistanceSqFunc,
TFunctionRef < bool> IgnoreFunc
) const
Remarks
Find nearest point in grid, within a given sphere, without locking / thread-safety. the found pair (Value,DistanceFunc(Value)), or (InvalidValue,MaxDouble) if not found
Parameters
| Name | 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 |