Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TVector
Description
Return the Quaternion orientation corresponding to the direction in which the vector points. Similar to the UE::Math::TRotator
If you don'T care about preserving the up vector and just want the most direct rotation, you can use the faster 'FQuat::FindBetweenVectors(FVector::ForwardVector, YourVector)' or 'FQuat::FindBetweenNormals(...)' if you know the vector is of unit length.
| Name | ToOrientationQuat |
| 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 |
TQuat < T > ToOrientationQuat() const
Quaternion from the Vector's direction, without any roll.
See Also
-
ToOrientationRotator()
-
FQuat::FindBetweenVectors()