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 Definition: RunLoopManager.h:42
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
auto extractYaw(T const &quat) -> decltype(std::atan(quat.w()))
A utility function to extract "yaw" out of a quaternion, of any representation as long as it responds...
Definition: ExtractYaw.h:47
A small structure to hold a non zero as a triplet (i,j,value).
Definition: SparseUtil.h:148