Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TVector2
Description
Normalize this vector in-place if it is large enough, set it to (0,0) otherwise. (Note this is different from TVector<>::Normalize, which leaves the vector unchanged if it is too small to normalize.)
| Name | Normalize |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector2D.h |
| Include Path | #include "Math/Vector2D.h" |
bool Normalize
(
T Tolerance
)
true if the vector was normalized correctly, false if it was too small and set to zero.
Parameters
| Name | Remarks |
|---|---|
| Tolerance | Minimum squared length of vector for normalization. |