FTimeStretchCurveInstance::BinarySearchMarkerIndex

Find marker index that bookends supplied position, using supplied markers, doing a binary search to find match.

Windows
MacOS
Linux

References

Module

Engine

Header

/Engine/Source/Runtime/Engine/Classes/Animation/TimeStretchCurve.h

Include

#include "Animation/TimeStretchCurve.h"

Source

/Engine/Source/Runtime/Engine/Private/Animation/TimeStretchCurve.cpp

Syntax

int32 BinarySearchMarkerIndex
(
    float InPosition,
    const TArray< float > & InMarkerPositions
) const

Remarks

Find marker index that bookends supplied position, using supplied markers, doing a binary search to find match. Most steps taken are Log2(N).

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