lomiri-location-service
..
An aggregating location service providing positioning and geocoding capabilities to applications.
|
Go to the documentation of this file.
18 #ifndef LOCATION_SERVICE_COM_LOMIRI_LOCATION_UNITS_UNITS_H_
19 #define LOCATION_SERVICE_COM_LOMIRI_LOCATION_UNITS_UNITS_H_
21 #include <boost/units/cmath.hpp>
22 #include <boost/units/io.hpp>
23 #include <boost/units/quantity.hpp>
24 #include <boost/units/systems/angle/degrees.hpp>
25 #include <boost/units/systems/angle/gradians.hpp>
26 #include <boost/units/systems/si.hpp>
27 #include <boost/units/systems/si/prefixes.hpp>
34 #include <boost/optional/optional_io.hpp>
47 typedef boost::units::gradian::plane_angle
Gradians;
49 typedef boost::units::si::length
Length;
53 using boost::units::si::kilo;
59 template<
typename Unit>
60 using Quantity = boost::units::quantity<Unit, double>;
64 using boost::units::sin;
65 using boost::units::cos;
66 using boost::units::atan2;
68 template<
typename Unit>
71 return std::fabs(lhs.value()-rhs.value()) <= std::numeric_limits<double>::epsilon();
78 #endif // LOCATION_SERVICE_COM_LOMIRI_LOCATION_UNITS_UNITS_H_
static const Velocity MetersPerSecond
static const Length Meters
static const Velocity MeterPerSecond
boost::units::gradian::plane_angle Gradians
boost::units::si::length Length
boost::units::quantity< Unit, double > Quantity
bool roughly_equals(const Quantity< Unit > &lhs, const Quantity< Unit > &rhs)
static const PlaneAngle Degree
static const Length Meter
boost::units::si::dimensionless Dimensionless
boost::units::degree::plane_angle PlaneAngle
boost::units::si::velocity Velocity
static const PlaneAngle Degrees