Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TVector
Description
Return the TRotator 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.
| Name | ToOrientationRotator |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector.h |
| Include Path | #include "Math/Vector.h" |
| Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
TRotator < T > ToOrientationRotator() const
TRotator from the Vector's direction, without any roll.