...
This commit is contained in:
@@ -475,7 +475,7 @@ public:
|
||||
std::pair<double, double> pos;
|
||||
cctEngine.geoPosition(&pos);
|
||||
|
||||
return MccGeoLONLAT(pos.second, pos.first);
|
||||
return MccGeoLONLAT(pos.first, pos.second);
|
||||
}
|
||||
|
||||
|
||||
@@ -581,10 +581,9 @@ public:
|
||||
}
|
||||
|
||||
|
||||
error_t appSideralTime(mcc_angle_c auto* st) const
|
||||
error_t appSideralTime(mcc_angle_c auto* st, bool is_local = false) const
|
||||
{
|
||||
// return Greenwich apparent sideral time since epoch is UTC
|
||||
return cctEngine.apparentSideralTime(_epoch, st, false);
|
||||
return cctEngine.apparentSideralTime(_epoch, st, is_local);
|
||||
}
|
||||
|
||||
|
||||
@@ -735,6 +734,16 @@ protected:
|
||||
static_assert(PT::pairKind != MccCoordPairKind::COORDS_KIND_UNKNOWN, "UNSUPPORTED SKY POINT TRANSFORMATION!");
|
||||
|
||||
|
||||
if constexpr (PT::pairKind == MccCoordPairKind::COORDS_KIND_LONLAT) { // returns geographic site coordinates
|
||||
std::pair<double, double> pos;
|
||||
cctEngine.geoPosition(&pos);
|
||||
|
||||
cpair.setX(pos.first);
|
||||
cpair.setY(pos.second);
|
||||
|
||||
return error_t{};
|
||||
}
|
||||
|
||||
if (_pairKind == MccCoordPairKind::COORDS_KIND_RADEC_ICRS &&
|
||||
PT::pairKind == MccCoordPairKind::COORDS_KIND_RADEC_ICRS) { // from ICRS to ICRS - just copy and exit
|
||||
cpair = PT(typename PT::x_t(_x), typename PT::y_t(_y));
|
||||
|
||||
Reference in New Issue
Block a user