Navigation
API > API/Runtime > API/Runtime/Core > API/Runtime/Core/TQuat
Warnings * assumes normalized quaternion and twist axis
Description
Get the swing and twist decomposition for a specified axis
assumes normalized quaternion and twist axis
| Name | ToSwingTwist |
| Type | function |
| Header File | /Engine/Source/Runtime/Core/Public/Math/Quat.h |
| Include Path | #include "Math/Quat.h" |
| Source | /Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp |
void ToSwingTwist
(
const TVector < T > & InTwistAxis,
TQuat < T > & OutSwing,
TQuat < T > & OutTwist
) const
Parameters
| Name | Remarks |
|---|---|
| InTwistAxis | Axis to use for decomposition |
| OutSwing | swing component quaternion |
| OutTwist | Twist component quaternion |