Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TVector4
Description
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()'.
| Name | Rotation |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Vector4.h |
| Include Path | #include "Math/Vector4.h" |
TRotator < T > Rotation() const
FRotator from the Vector's direction.
See Also
- ToOrientationRotator()