| 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 | |
| 11 | #ifndef BOOST_UNITS_ANGLE_DEGREE_HPP |
| 12 | #define BOOST_UNITS_ANGLE_DEGREE_HPP |
| 13 | |
| 14 | #include <boost/config/no_tr1/cmath.hpp> |
| 15 | |
| 16 | #include <boost/units/conversion.hpp> |
| 17 | #include <boost/units/static_constant.hpp> |
| 18 | #include <boost/units/unit.hpp> |
| 19 | #include <boost/units/make_system.hpp> |
| 20 | #include <boost/units/base_units/angle/degree.hpp> |
| 21 | |
| 22 | namespace boost { |
| 23 | |
| 24 | namespace units { |
| 25 | |
| 26 | namespace degree { |
| 27 | |
| 28 | typedef make_system<boost::units::angle::degree_base_unit>::type system; |
| 29 | |
| 30 | typedef unit<dimensionless_type,system> dimensionless; |
| 31 | typedef unit<plane_angle_dimension,system> plane_angle; ///< angle degree unit constant |
| 32 | |
| 33 | BOOST_UNITS_STATIC_CONSTANT(degree,plane_angle); |
| 34 | BOOST_UNITS_STATIC_CONSTANT(degrees,plane_angle); |
| 35 | |
| 36 | } // namespace degree |
| 37 | |
| 38 | } // namespace units |
| 39 | |
| 40 | } // namespace boost |
| 41 | |
| 42 | #endif // BOOST_UNITS_ANGLE_DEGREE_HPP |
| 43 |
