rename MccCoordinate to MccAngle

This commit is contained in:
2025-04-21 18:42:21 +03:00
parent 67340d1926
commit 9315018bda
5 changed files with 73 additions and 73 deletions

View File

@@ -254,7 +254,7 @@ public:
_geoLocation.store(geoloc);
}
void setSiteLatitude(const MccCoordinate& lat)
void setSiteLatitude(const MccAngle& lat)
{
auto st = _geoLocation.load();
st.latitude = lat;
@@ -262,7 +262,7 @@ public:
_geoLocation.store(st);
}
void setSiteLongitude(const MccCoordinate& lon)
void setSiteLongitude(const MccAngle& lon)
{
auto st = _geoLocation.load();
st.longitude = lon;
@@ -330,8 +330,8 @@ public:
// 0 - already in the zone
// std::chrono::duration<>::max() - never reach the zone
// the kind of cordinates (e.g. IRCS or apparent, equatorial or horizontal) is a subject of implementation
auto pzTimeTo(const MccCoordinate& xcoord,
const MccCoordinate& ycoord,
auto pzTimeTo(const MccAngle& xcoord,
const MccAngle& ycoord,
traits::mcc_systime_c auto const& utc = std::chrono::system_clock::now())
{
using d_t = std::remove_cvref_t<decltype(utc)>::duration;
@@ -343,8 +343,8 @@ public:
// 0 - already out of the zone
// std::chrono::duration<>::max() - the zone itself
// the kind of cordinates (e.g. IRCS or apparent, equatorial or horizontal) is a subject of implementation
auto pzTimeFrom(const MccCoordinate& xcoord,
const MccCoordinate& ycoord,
auto pzTimeFrom(const MccAngle& xcoord,
const MccAngle& ycoord,
traits::mcc_systime_c auto const& utc = std::chrono::system_clock::now())
{
using d_t = std::remove_cvref_t<decltype(utc)>::duration;
@@ -360,8 +360,8 @@ public:
// never exit the zone)
auto pzCheck(this auto&& self,
const MccCoordinate& xcoord,
const MccCoordinate& ycoord,
const MccAngle& xcoord,
const MccAngle& ycoord,
std::derived_from<MccProhibitedZoneContext> auto const& context,
traits::mcc_systime_c auto const& utc = std::chrono::system_clock::now())
{
@@ -373,8 +373,8 @@ public:
const R2& ycoord,
std::derived_from<MccProhibitedZoneContext> auto const& context)
requires(std::ranges::output_range<OR, pzcheck_result_t<>> &&
std::derived_from<std::ranges::range_value_t<R1>, MccCoordinate> &&
std::derived_from<std::ranges::range_value_t<R2>, MccCoordinate>)
std::derived_from<std::ranges::range_value_t<R1>, MccAngle> &&
std::derived_from<std::ranges::range_value_t<R2>, MccAngle>)
{
OR res;
@@ -390,8 +390,8 @@ public:
auto pzCheckRange(const R1& xcoord,
const R2& ycoord,
std::derived_from<MccProhibitedZoneContext> auto const& context)
requires(std::derived_from<std::ranges::range_value_t<R1>, MccCoordinate> &&
std::derived_from<std::ranges::range_value_t<R2>, MccCoordinate>)
requires(std::derived_from<std::ranges::range_value_t<R1>, MccAngle> &&
std::derived_from<std::ranges::range_value_t<R2>, MccAngle>)
{
return pzCheckRange<std::vector<pzcheck_result_t<>>>(xcoord, ycoord, context);
}
@@ -445,8 +445,8 @@ protected:
std::atomic<MccMountMeteo> _currentMeteo;
// default implementation
auto pzCheckImpl(const MccCoordinate& xcoord,
const MccCoordinate& ycoord,
auto pzCheckImpl(const MccAngle& xcoord,
const MccAngle& ycoord,
std::derived_from<MccProhibitedZoneContext> auto const& context,
traits::mcc_systime_c auto const& utc = std::chrono::system_clock::now())
{