kopia lustrzana https://gitlab.com/Zwarf/picplanner
rodzic
a07e2bedad
commit
f0a35b253b
|
@ -194,6 +194,11 @@ double
|
|||
y = cos (declination) * sin (time_sidereal - right_ascension);
|
||||
|
||||
azimuth = atan2 (-y, -x);
|
||||
/*
|
||||
* Exclude negative results
|
||||
*/
|
||||
if (azimuth < 0)
|
||||
azimuth += 2*M_PI;
|
||||
|
||||
elevation = asin (sin (latitude) * sin (declination)
|
||||
+ cos (latitude) * cos (declination) * cos (time_sidereal - right_ascension));
|
||||
|
|
Ładowanie…
Reference in New Issue