FMatrix::ToQuat

Transform a rotation matrix into a quaternion.

Windows
MacOS
Linux

Warnings

  • rotation part will need to be unit length for this to be right!

References

Module

Core

Header

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

Include

#include "Math/Matrix.h"

Source

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

Syntax

FQuat ToQuat() const

Remarks

Transform a rotation matrix into a quaternion.

rotation part will need to be unit length for this to be right!

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