Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TVector
Description
Gets a normalized copy of the vector, checking it is safe to do so based on the length. Returns zero vector by default if vector length is too small to safely normalize.
| Name | GetSafeNormal |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
TVector < T > GetSafeNormal
(
T Tolerance,
const TVector < T > & ResultIfZero
) const
A normalized copy if safe, ResultIfZero otherwise.
Parameters
| Name | Remarks |
|---|---|
| Tolerance | Minimum squared vector length. Must be positive. |