mirror of
http://172.16.0.230/r/SIF/TowerOptoSifAndSpectral.git
synced 2025-10-23 04:59:42 +08:00
23 lines
606 B
C
23 lines
606 B
C
|
//
|
|||
|
// Created by xin on 25-5-8.
|
|||
|
//
|
|||
|
|
|||
|
#ifndef SUNUPANDDOWN_H
|
|||
|
#define SUNUPANDDOWN_H
|
|||
|
struct SunInfo {
|
|||
|
double sunrise_h; // <20>ճ<EFBFBD>ʱ<EFBFBD>䣨Сʱ<D0A1><CAB1>
|
|||
|
double sunrise_m; // <20>ճ<EFBFBD>ʱ<EFBFBD>䣨<EFBFBD><E4A3A8><EFBFBD>ӣ<EFBFBD>
|
|||
|
double sunset_h; // <20><><EFBFBD><EFBFBD>ʱ<EFBFBD>䣨Сʱ<D0A1><CAB1>
|
|||
|
double sunset_m; // <20><><EFBFBD><EFBFBD>ʱ<EFBFBD>䣨<EFBFBD><E4A3A8><EFBFBD>ӣ<EFBFBD>
|
|||
|
bool hasSunlight; // <20>Ƿ<EFBFBD><C7B7><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>
|
|||
|
};
|
|||
|
|
|||
|
SunInfo calculateSunriseSunset(int year, int month, int day, double latitude, double longitude);
|
|||
|
|
|||
|
void calculateSunriseSunset(int year, int month, int day, double latitude, double longitude,
|
|||
|
double &sunrise, double &sunset, bool &hasSunlight);
|
|||
|
|
|||
|
|
|||
|
|
|||
|
#endif //SUNUPANDDOWN_H
|