Navigation
API > API/Runtime > API/Runtime/Engine > API/Runtime/Engine/Kismet > API/Runtime/Engine/Kismet/UKismetMathLibrary > API/Runtime/Engine/Kismet/UKismetMathLibrary/ToDirectionAndLength2D
References
| Module | Engine |
| Header | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.h |
| Include | #include "Kismet/KismetMathLibrary.h" |
| Source | /Engine/Source/Runtime/Engine/Classes/Kismet/KismetMathLibrary.inl |
static void ToDirectionAndLength2D
&40;
FVector2D A,
FVector2D & OutDir,
double & OutLength
&41;
Remarks
Util to convert this vector into a unit direction vector and its original length.
Parameters
| Name | Description |
|---|---|
| OutDir | Reference passed in to store unit direction vector. |
| OutLength | Reference passed in to store length of the vector. |