...
This commit is contained in:
parent
f6f040e27c
commit
c0f7b06821
32
cxx/mcc_mount_pec.h
Normal file
32
cxx/mcc_mount_pec.h
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
#pragma once
|
||||||
|
|
||||||
|
#include "mcc_mount_coord.h"
|
||||||
|
|
||||||
|
namespace mcc
|
||||||
|
{
|
||||||
|
|
||||||
|
class MccMountPEC
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
struct pec_result_t {
|
||||||
|
MccAngle dx, dy;
|
||||||
|
};
|
||||||
|
|
||||||
|
template <std::derived_from<MccAngle> XT, std::derived_from<MccAngle> YT>
|
||||||
|
pec_result_t compute(const XT& x, const YT& y)
|
||||||
|
{
|
||||||
|
static constexpr MccCoordPairKind coord_kind = traits::mcc_type_pair_hash<XT, YT>();
|
||||||
|
|
||||||
|
pec_result_t res;
|
||||||
|
|
||||||
|
if constexpr (coord_kind == MccCoordPairKind::COORDS_KIND_HADEC_APP) {
|
||||||
|
} else if constexpr (coord_kind == MccCoordPairKind::COORDS_KIND_AZALT) {
|
||||||
|
} else {
|
||||||
|
static_assert(false, "UNSUPPORTED");
|
||||||
|
}
|
||||||
|
|
||||||
|
return res;
|
||||||
|
}
|
||||||
|
};
|
||||||
|
|
||||||
|
} // namespace mcc
|
||||||
Loading…
x
Reference in New Issue
Block a user