VectorNormalizeSafe

Returns ((Vector dot Vector) >= 1e-8) ? (Vector / |Vector|) : DefaultValue Uses accurate 1/sqrt, not the estimate

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/UnrealMathVectorCommon.h"

Syntax

VectorRegister VectorNormalizeSafe
(
    const VectorRegister & Vector,
    const VectorRegister & DefaultValue
)

Remarks

Returns ((Vector dot Vector) >= 1e-8) ? (Vector / |Vector|) : DefaultValue Uses accurate 1/sqrt, not the estimate

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