FInterpCurve::InaccurateFindNearestOnSegment

Find the nearest point (to the given point) on segment between Points[PtIdx] and Points[PtIdx+1]

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/InterpCurve.h"

Syntax

float InaccurateFindNearestOnSegment
(
    const T & PointInSpace,
    int32 PtIdx,
    float & OutSquaredDistance
) const

Remarks

Find the nearest point (to the given point) on segment between Points[PtIdx] and Points[PtIdx+1]

Returns

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

Parameters

Parameter

Description

PointInSpace

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