...
This commit is contained in:
@@ -394,8 +394,20 @@ public:
|
||||
|
||||
|
||||
// coordinates transformations
|
||||
template <typename ResT>
|
||||
error_t transformCoordinates(mcc_celestial_point_c auto from_pt, ResT* to_pt)
|
||||
requires(mcc_eqt_hrz_coord_c<ResT> || mcc_celestial_point_c<ResT>)
|
||||
{
|
||||
if constexpr (mcc_eqt_hrz_coord_c<ResT>) {
|
||||
return transformCoordinatesEQHR(std::move(from_pt), to_pt);
|
||||
} else if constexpr (mcc_celestial_point_c<ResT>) {
|
||||
return transformCoordinatesCP(std::move(from_pt), to_pt);
|
||||
} else {
|
||||
static_assert(false, "UNSUPPORTED TYPE!");
|
||||
}
|
||||
}
|
||||
|
||||
error_t transformCoordinates(mcc_celestial_point_c auto from_pt, mcc_celestial_point_c auto* to_pt)
|
||||
error_t transformCoordinatesCP(mcc_celestial_point_c auto from_pt, mcc_celestial_point_c auto* to_pt)
|
||||
{
|
||||
error_t ret = MccCCTE_ERFAErrorCode::ERROR_OK;
|
||||
|
||||
@@ -557,7 +569,7 @@ public:
|
||||
}
|
||||
|
||||
|
||||
error_t transformCoordinates(mcc_celestial_point_c auto from_pt, mcc_eqt_hrz_coord_c auto* to_pt)
|
||||
error_t transformCoordinatesEQHR(mcc_celestial_point_c auto from_pt, mcc_eqt_hrz_coord_c auto* to_pt)
|
||||
{
|
||||
error_t ret = MccCCTE_ERFAErrorCode::ERROR_OK;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user