Header.
More...
#include <boost/units/quantity.hpp>
#include <boost/units/systems/si/plane_angle.hpp>
#include <boost/units/systems/angle/degrees.hpp>
Go to the source code of this file.
|
| | 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.
|
| |
|
|
template<typename System , typename Y = double> |
| using | osvr::util::AngleGeneric = boost::units::quantity< boost::units::unit< boost::units::plane_angle_dimension, System >, Y > |
| | Convenience template alias for a plane_angle quantity in an arbitrary system with arbitrary scalar.
|
| |
|
template<typename Y > |
| using | osvr::util::AngleRadians = boost::units::quantity< boost::units::si::plane_angle, Y > |
| | Alias for an angle in radians with arbitrary scalar type.
|
| |
|
template<typename Y > |
| using | osvr::util::AngleDegrees = boost::units::quantity< boost::units::degree::plane_angle, Y > |
| | Alias for an angle in degrees with arbitrary scalar type.
|
| |
|
typedef AngleRadiansd | osvr::util::Angle |
| | Default angle type.
|
| |
|
|
template<typename System , typename Y > |
| Y | osvr::util::getRadians (AngleGeneric< System, Y > const angle) |
| | Get the raw scalar value of your angle in radians.
|
| |
|
template<typename System , typename Y > |
| Y | osvr::util::getDegrees (AngleGeneric< System, Y > const angle) |
| | Get the raw scalar value of your angle in degrees.
|
| |
Header.
- Date
- 2015
- Author
- Sensics, Inc. http://sensics.com/osvr
Definition in file Angles.h.