...
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
|
||||
#include "../mcc_ccte_erfa.h"
|
||||
#include "../mcc_pzone.h"
|
||||
#include "../mcc_pzone_container.h"
|
||||
|
||||
using namespace mcc::ccte::erfa;
|
||||
|
||||
@@ -77,5 +78,20 @@ int main()
|
||||
std::cout << "INTERSEC AZ = " << mcc::MccAngle(icp.X).sexagesimal() << "\n";
|
||||
std::cout << "INTERSEC ALT = " << mcc::MccAngle(icp.Y).sexagesimal() << "\n";
|
||||
|
||||
|
||||
mcc::MccAltLimitPZ<mcc::MccAltLimitKind::MAX_ALT_LIMIT> altmax(80.0_degs, state.lat, &erfa);
|
||||
|
||||
mcc::MccPZoneContainer<std::chrono::duration<double>> pzcont;
|
||||
|
||||
pzcont.addPZone(altmin);
|
||||
pzcont.addPZone(altmax);
|
||||
|
||||
// std::vector<std::chrono::duration<double, std::ratio<60>>> vm;
|
||||
std::vector<std::chrono::minutes> vm;
|
||||
ret = pzcont.timeToPZone(eqhrz, &vm);
|
||||
std::cout << "ret = " << ret.message() << "\n";
|
||||
std::cout << "TIME TO ZONE 1: " << vm[0] << "\n";
|
||||
std::cout << "TIME TO ZONE 2: " << vm[1] << "\n";
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user