TVector4::Rotation

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"

Syntax

TRotator< T > Rotation() 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. Identical to 'ToOrientationRotator()'.

Returns

FRotator from the Vector's direction.

See Also