Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetMathLibrary
Description
Get a copy of the vector as sign only. Each component is set to +1 or -1, with the sign of zero treated as +1.
| Name | ToSign2D |
| 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="To Sign (+1/-1) 2D", ScriptMethod="ToSign"),
Category="Math|Vector2D")
static UE_FVector2D ToSign2D
(
FVector2D A
)
A copy of the vector with each component set to +1 or -1