CelestialCalendar 1.0.0 · unreleased development @ 67a7c4c79a4a4a6aa7e703c9e6f0039ae34bee82
Loading...
Searching...
No Matches
geolocation.hpp File Reference
#include <cmath>
#include <format>
#include <stdexcept>
#include <string_view>
#include "toolbox.hpp"

Classes

struct  astro::GeoLocation
 An observer's geographic location on the Earth. More...

Namespaces

namespace  astro
namespace  astro::geolocation

Functions

auto astro::geolocation::validate_longitude (const toolbox::AngleDeg longitude, const std::string_view name) -> void
 Reject a non-finite geographic longitude or one outside [-180°, 180°], preserving the caller's name.