TMatrix::ToQuat

Transform a rotation matrix into a quaternion.

Choose your operating system:

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"

Syntax

UE::Math::TQuat< T > ToQuat() const

Remarks

Transform a rotation matrix into a quaternion.

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