FQuat::ToSwingTwist

Get the swing and twist decomposition for a specified axis

Windows
MacOS
Linux

Warnings

  • assumes normalized quaternion and twist axis

References

Module

Core

Header

/Engine/Source/Runtime/Core/Public/Math/Quat.h

Include

#include "Math/Quat.h"

Source

/Engine/Source/Runtime/Core/Private/Math/UnrealMath.cpp

Syntax

void ToSwingTwist
(
    const FVector & InTwistAxis,
    FQuat & OutSwing,
    FQuat & OutTwist
) const

Remarks

Get the swing and twist decomposition for a specified axis

assumes normalized quaternion and twist axis

Parameters

Parameter

Description

InTwistAxis

Axis to use for decomposition

OutSwing

swing component quaternion

OutTwist

Twist component quaternion

Help shape the future of Unreal Engine documentation! Tell us how we're doing so we can serve you better.
Take our survey
Dismiss