FVector::ToDirectionAndLength

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

Windows
MacOS
Linux

References

Module

Core

Header

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

Include

#include "Math/Vector.h"

Syntax

void ToDirectionAndLength
(
    FVector & 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.

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