This commit is contained in:
2025-07-24 18:55:59 +03:00
parent 7e1709727a
commit 961c72f17f
8 changed files with 562 additions and 186 deletions

View File

@@ -13,6 +13,16 @@ constexpr double operator""_degs(long double val) // angle in degrees
return val * std::numbers::pi / 180.0;
}
constexpr double operator""_arcmins(long double val) // angle in arc minutes
{
return val * std::numbers::pi / 180.0 / 60.0;
}
constexpr double operator""_arcsecs(long double val) // angle in arc seconds
{
return val * std::numbers::pi / 180.0 / 3600.0;
}
constexpr double operator""_dms(const char* s, size_t size) // as a string "DEGREES:MINUTES:SECONDS"
{
auto res = mcc::utils::parsAngleString(std::span{s, size});