25 #ifndef INCLUDED_ExtractYaw_h_GUID_D9365866_476B_429D_7216_17299B9CB5C6
26 #define INCLUDED_ExtractYaw_h_GUID_D9365866_476B_429D_7216_17299B9CB5C6
47 inline auto extractYaw(T
const &quat) -> decltype(std::atan(quat.w())) {
49 std::atan2(2 * (quat.y() * quat.w() - quat.x() * quat.z()),
50 1 - 2 * quat.y() * quat.y() - 2 * quat.z() * quat.z());
55 #endif // INCLUDED_ExtractYaw_h_GUID_D9365866_476B_429D_7216_17299B9CB5C6
The main namespace for all C++ elements of the framework, internal and external.
auto extractYaw(T const &quat) -> decltype(std::atan(quat.w()))