OSVR-Core
Namespaces | Functions
ExtractYaw.h File Reference

Header. More...

#include <cmath>

Go to the source code of this file.

Namespaces

 osvr
 The main namespace for all C++ elements of the framework, internal and external.
 
 osvr::util
 The Util library: Functionality not necessarily coupled to any particular core library, serving more as a common base layer behind all systems.
 

Functions

template<typename T >
auto osvr::util::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 to .w(), .x(), .y(), and .z(). More...
 

Detailed Description

Header.

Date
2015
Author
Sensics, Inc. http://sensics.com/osvr