TVector4::GetSafeNormal

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Math/Vector4.h"

Syntax

TVector4 GetSafeNormal
(
    T 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.