FVector4::GetSafeNormal

Returns a normalized copy of the vector if safe to normalize.

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Vector4.h"

Syntax

FVector4 GetSafeNormal
(
    float Tolerance
) const

Remarks

Returns a normalized copy of the vector if safe to normalize.

Returns

A normalized copy of the vector or a zero vector.

Parameters

Parameter

Description

Tolerance

Minimum squared length of vector for normalization.

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