TVector4::ToOrientationRotator

Return the FRotator orientation corresponding to the direction in which the vector points.

Choose your operating system:

Windows

macOS

Linux

References

Module

Core

Header

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

Include

#include "Math/Vector4.h"

Source

/Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp

Syntax

TRotator< T > ToOrientationRotator() const

Remarks

Return the FRotator orientation corresponding to the direction in which the vector points. Sets Yaw and Pitch to the proper numbers, and sets roll to zero because the roll can't be determined from a vector.

Returns

FRotator from the Vector's direction.