25 #ifndef INCLUDED_Angles_h_GUID_DDFCCAF8_9ED0_4E85_62F3_173C073B8BB7 26 #define INCLUDED_Angles_h_GUID_DDFCCAF8_9ED0_4E85_62F3_173C073B8BB7 32 #include <boost/units/quantity.hpp> 33 #include <boost/units/systems/si/plane_angle.hpp> 34 #include <boost/units/systems/angle/degrees.hpp> 40 using boost::units::si::radians;
41 using boost::units::degree::degrees;
45 template <
typename System,
typename Y =
double>
47 boost::units::unit<boost::units::plane_angle_dimension, System>, Y>;
52 boost::units::quantity<boost::units::si::plane_angle, Y>;
57 boost::units::quantity<boost::units::degree::plane_angle, Y>;
66 template <
typename System,
typename Y>
73 template <
typename System,
typename Y>
81 #endif // INCLUDED_Angles_h_GUID_DDFCCAF8_9ED0_4E85_62F3_173C073B8BB7 AngleRadiansd Angle
Default angle type.
Definition: Angles.h:63
Definition: RunLoopManager.h:42
The main namespace for all C++ elements of the framework, internal and external.
Definition: namespace_osvr.dox:3
boost::units::quantity< boost::units::unit< boost::units::plane_angle_dimension, System >, Y > AngleGeneric
Convenience template alias for a plane_angle quantity in an arbitrary system with arbitrary scalar...
Definition: Angles.h:47
Y getDegrees(AngleGeneric< System, Y > const angle)
Get the raw scalar value of your angle in degrees.
Definition: Angles.h:74
Y getRadians(AngleGeneric< System, Y > const angle)
Get the raw scalar value of your angle in radians.
Definition: Angles.h:67
boost::units::quantity< boost::units::si::plane_angle, Y > AngleRadians
Alias for an angle in radians with arbitrary scalar type.
Definition: Angles.h:52
boost::units::quantity< boost::units::degree::plane_angle, Y > AngleDegrees
Alias for an angle in degrees with arbitrary scalar type.
Definition: Angles.h:57