FInterpCurve::InaccurateFindNearest

Find the nearest point on spline to the given point.

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/InterpCurve.h

Include

#include "Math/InterpCurve.h"

Syntax

float InaccurateFindNearest
(
    const T & PointInSpace,
    float & OutDistanceSq,
    float & OutSegment
) const

Remarks

Find the nearest point on spline to the given point.

Returns

The key (the 't' parameter) of the nearest point.

Parameters

Parameter

Description

PointInSpace

the given point

OutDistanceSq

output - the squared distance between the given point and the closest found point.

OutSegment

output - the nearest segment to the given point.

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