Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetMathLibrary
Description
Normalize this vector in-place if it is large enough, set it to (0,0) otherwise.
| Name | Normalize2D |
| Type | function |
| Header File | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
| Include Path | #include "Kismet/KismetMathLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl |
UFUNCTION (BlueprintCallable,
Meta=(DisplayName="Normalize In Place (Vector2D)", Keywords="Unit Vector", ScriptMethod="Normalize"),
Category="Math|Vector2D")
static UE_void Normalize2D
(
FVector2D & A,
float Tolerance
)
Parameters
| Name | Remarks |
|---|---|
| Tolerance | Minimum squared length of vector for normalization. |
See Also
- NormalSafe2D()