| 2 |
// globals.cpp |
// globals.cpp |
| 3 |
// |
// |
| 4 |
#include <sgp4.h> |
#include <sgp4.h> |
| 5 |
|
#include <cstring> |
| 6 |
|
|
| 7 |
////////////////////////////////////////////////////////////////////////////// |
////////////////////////////////////////////////////////////////////////////// |
| 8 |
double sqr(const double x) |
double sqr(const double x) |
| 231 |
// 1582 A.D.: 10 days removed from calendar |
// 1582 A.D.: 10 days removed from calendar |
| 232 |
// 3000 A.D.: Arbitrary error checking limit |
// 3000 A.D.: Arbitrary error checking limit |
| 233 |
assert((year > 1582) && (year < 3000)); |
assert((year > 1582) && (year < 3000)); |
| 234 |
assert((day >= 0.0) && (day <= 366.5)); |
assert((day >= 0.0) && (day <= 366.7)); // 366.5 |
| 235 |
|
|
| 236 |
// Now calculate Julian date |
// Now calculate Julian date |
| 237 |
|
|