dtClamp

Clamps the value to the specified range.

Windows
MacOS
Linux

References

Module

Navmesh

Header

/Engine/Source/Runtime/Navmesh/Public/Detour/DetourCommon.h

Include

#include "Detour/DetourCommon.h"

Syntax

template<class T>
T dtClamp
(
    T v,
    T mn,
    T mx
)

Remarks

Clamps the value to the specified range.

Returns

The value, clamped to the specified range.

Parameters

Parameter

Description

v

The value to clamp.

mn

The minimum permitted return value.

mx

The maximum permitted return value.

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