TVector2::ToDirectionAndLength

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

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Vector2D.h

Include

#include "Math/Vector2D.h"

Syntax

void ToDirectionAndLength
(
    TVector2< T > & OutDir,
    float & OutLength
) const

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.