FMath::GetRangePct

Calculates the percentage along a line from MinValue to MaxValue that Value is.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/UnrealMathUtility.h"

Syntax

template<typename T>
static TEnableIf< TIsFloatingPoint< T >::Value, T >::Type GetRangePct
(
    T MinValue,
    T MaxValue,
    T Value
)

Remarks

Calculates the percentage along a line from MinValue to MaxValue that Value is.

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