Module |
|
Header |
/Engine/Source/Runtime/Core/Public/Math/Vector.h |
Include |
#include "Math/Vector.h" |
FVector GetSafeNormal2D
(
float Tolerance
) const
Gets a normalized copy of the 2D components of the vector, checking it is safe to do so. Z is set to zero. Returns zero vector if vector length is too small to normalize.
Normalized copy if safe, otherwise returns zero vector.
Parameter |
Description |
---|---|
Tolerance |
Minimum squared vector length. |