Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetMathLibrary
Description
Gets a normalized copy of the vector, checking it is safe to do so based on the length. Returns zero vector if vector length is too small to safely normalize.
| Name | NormalSafe2D |
| 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 (BlueprintPure,
Meta=(DisplayName="Normal Safe (Vector2D)", Keywords="Unit Vector", ScriptMethod="Normal"),
Category="Math|Vector2D")
static UE_FVector2D NormalSafe2D
(
FVector2D A,
float Tolerance
)
A normalized copy of the vector if safe, (0,0) otherwise.
Parameters
| Name | Remarks |
|---|---|
| Tolerance | Minimum squared length of vector for normalization. |