gradians.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_GRADIANS_HPP
  11. #define BOOST_UNITS_ANGLE_GRADIANS_HPP
  12. #include <boost/config/no_tr1/cmath.hpp>
  13. #include <boost/units/conversion.hpp>
  14. #include <boost/units/quantity.hpp>
  15. #include <boost/units/static_constant.hpp>
  16. #include <boost/units/make_system.hpp>
  17. #include <boost/units/base_units/angle/gradian.hpp>
  18. namespace boost {
  19. namespace units {
  20. namespace gradian {
  21. typedef make_system<boost::units::angle::gradian_base_unit>::type system;
  22. typedef unit<dimensionless_type,system> dimensionless;
  23. typedef unit<plane_angle_dimension,system> plane_angle; ///< angle gradian unit constant
  24. BOOST_UNITS_STATIC_CONSTANT(gradian,plane_angle);
  25. BOOST_UNITS_STATIC_CONSTANT(gradians,plane_angle);
  26. } // namespace gradian
  27. } // namespace units
  28. } // namespace boost
  29. #endif // BOOST_UNITS_ANGLE_GRADIANS_HPP