1#ifndef OSMIUM_GEOM_UTIL_HPP
2#define OSMIUM_GEOM_UTIL_HPP
50 std::runtime_error(what) {
54 std::runtime_error(what) {
61 constexpr double PI = 3.14159265358979323846;
64 inline constexpr double deg_to_rad(
double degree)
noexcept {
65 return degree * (
PI / 180.0);
69 inline constexpr double rad_to_deg(
double radians)
noexcept {
70 return radians * (180.0 /
PI);
#define OSMIUM_EXPORT
Definition: compatibility.hpp:54
constexpr double deg_to_rad(double degree) noexcept
Convert angle from degrees to radians.
Definition: util.hpp:64
constexpr double rad_to_deg(double radians) noexcept
Convert angle from radians to degrees.
Definition: util.hpp:69
constexpr double PI
Definition: util.hpp:61
Namespace for everything in the Osmium library.
Definition: assembler.hpp:53
Definition: location.hpp:555
projection_error(const char *what)
Definition: util.hpp:53
projection_error(const std::string &what)
Definition: util.hpp:49