FGenericPlatformMath::Sign

Returns 1, 0, or -1 depending on relation of T to 0

Windows
MacOS
Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/GenericPlatform/GenericPlatformMath.h

Include

#include "GenericPlatform/GenericPlatformMath.h"

Syntax

template<class T>
static constexpr T Sign
(
    const T A
)

Remarks

Returns 1, 0, or -1 depending on relation of T to 0

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