UKismetMathLibrary::ToDirectionAndLength2D

Util to convert this vector into a unit direction vector and its original length.

Windows
MacOS
Linux

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

Syntax

static void ToDirectionAndLength2D
(
    FVector2D A,
    FVector2D & OutDir,
    float & OutLength
)

Remarks

Util to convert this vector into a unit direction vector and its original length.

Parameters

Parameter

Description

OutDir

Reference passed in to store unit direction vector.

OutLength

Reference passed in to store length of the vector.

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss