Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/UKismetMathLibrary
Description
Determines if vector is normalized / unit (length 1) within specified squared tolerance. The W element is ignored.
| Name | Vector4_IsUnit3 |
| 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="Is Unit XYZ (Vector4)", ScriptMethod="IsUnit3", Keywords="Unit Vector"),
Category="Math|Vector4")
static UE_bool Vector4_IsUnit3
(
const FVector4 & A,
float SquaredLenthTolerance
)
true if unit, false otherwise.