1 // Boost.Units - A C++ library for zero-overhead dimensional analysis and
2 // unit/quantity manipulation and conversion
4 // Copyright (C) 2003-2008 Matthias Christian Schabel
5 // Copyright (C) 2008 Steven Watanabe
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)
11 #ifndef BOOST_UNITS_ANGLE_GRADIANS_HPP
12 #define BOOST_UNITS_ANGLE_GRADIANS_HPP
14 #include <boost/config/no_tr1/cmath.hpp>
16 #include <boost/units/conversion.hpp>
17 #include <boost/units/quantity.hpp>
18 #include <boost/units/static_constant.hpp>
19 #include <boost/units/make_system.hpp>
20 #include <boost/units/base_units/angle/gradian.hpp>
28 typedef make_system<boost::units::angle::gradian_base_unit>::type system;
30 typedef unit<dimensionless_type,system> dimensionless;
31 typedef unit<plane_angle_dimension,system> plane_angle; ///< angle gradian unit constant
33 BOOST_UNITS_STATIC_CONSTANT(gradian,plane_angle);
34 BOOST_UNITS_STATIC_CONSTANT(gradians,plane_angle);
36 } // namespace gradian
42 #endif // BOOST_UNITS_ANGLE_GRADIANS_HPP