degrees.hpp 1.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. // Boost.Units - A C++ library for zero-overhead dimensional analysis and
  2. // unit/quantity manipulation and conversion
  3. //
  4. // Copyright (C) 2003-2008 Matthias Christian Schabel
  5. // Copyright (C) 2008 Steven Watanabe
  6. //
  7. // Distributed under the Boost Software License, Version 1.0. (See
  8. // accompanying file LICENSE_1_0.txt or copy at
  9. // http://www.boost.org/LICENSE_1_0.txt)
  10. #ifndef BOOST_UNITS_ANGLE_DEGREE_HPP
  11. #define BOOST_UNITS_ANGLE_DEGREE_HPP
  12. #include <boost/config/no_tr1/cmath.hpp>
  13. #include <boost/units/conversion.hpp>
  14. #include <boost/units/static_constant.hpp>
  15. #include <boost/units/unit.hpp>
  16. #include <boost/units/make_system.hpp>
  17. #include <boost/units/base_units/angle/degree.hpp>
  18. namespace boost {
  19. namespace units {
  20. namespace degree {
  21. typedef make_system<boost::units::angle::degree_base_unit>::type system;
  22. typedef unit<dimensionless_type,system> dimensionless;
  23. typedef unit<plane_angle_dimension,system> plane_angle; ///< angle degree unit constant
  24. BOOST_UNITS_STATIC_CONSTANT(degree,plane_angle);
  25. BOOST_UNITS_STATIC_CONSTANT(degrees,plane_angle);
  26. } // namespace degree
  27. } // namespace units
  28. } // namespace boost
  29. #endif // BOOST_UNITS_ANGLE_DEGREE_HPP