6 #include <boost/math/constants/constants.hpp> 8 #include <boost/units/quantity.hpp> 9 #include <boost/units/systems/si/plane_angle.hpp> 10 #include <boost/units/systems/si/length.hpp> 11 #include <boost/units/cmath.hpp> 24 using Length = boost::units::quantity<boost::units::si::length>;
35 using Angle = boost::units::quantity<boost::units::si::plane_angle>;
37 using AngleSquare =
typename boost::units::multiply_typeof_helper<Angle, Angle>::type;
48 return boost::math::constants::pi<double>();
56 return boost::math::constants::two_pi<double>();
81 using namespace units;
boost::units::quantity< boost::units::si::plane_angle > Angle
Angle measured in radian.
Definition: Si.hh:35
constexpr double TwoPi()
Constant .
Definition: Si.hh:54
Angle PiRad()
Constant in rad.
Definition: Si.cpp:16
BOOST_UNITS_STATIC_CONSTANT(Barn, barn::Area)
Angle Wrap(Angle phi)
Wrap an angle by .
Definition: Si.cpp:33
boost::units::quantity< boost::units::si::length > Length
Length measured in meter.
Definition: Si.hh:24
Boosted Collider Analysis.
Definition: Analysis.hh:15
typename boost::units::multiply_typeof_helper< Angle, Angle >::type AngleSquare
Definition: Si.hh:37
Angle Restrict(Angle phi)
Restrict an angle to the interval .
Definition: Si.cpp:26
constexpr double Pi()
Constant .
Definition: Si.hh:46
Angle TwoPiRad()
Constant in rad.
Definition: Si.cpp:21