1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
/** Pi */
pub const DPI: f64 = 3.141592653589793238462643;

/** 2Pi */
pub const D2PI: f64 = 6.283185307179586476925287;

/** Radians to degrees */
pub const DR2D: f64 = 57.29577951308232087679815;

/** Degrees to radians */
pub const DD2R: f64 = 1.745329251994329576923691e-2;

/** Radians to arcseconds */
pub const DR2AS: f64 = 206264.8062470963551564734;

/** Arcseconds to radians */
pub const DAS2R: f64 = 4.848136811095359935899141e-6;

/** Seconds of time to radians */
pub const DS2R: f64 = 7.272205216643039903848712e-5;

/** Arcseconds in a full circle */
pub const TURNAS: f64 = 1296000.0;

/** Milliarcseconds to radians */
pub const DMAS2R: f64 = DAS2R / 1e3;

/** Length of tropical year B1900 (days) */
pub const DTY: f64 = 365.242198781;

/** Seconds per day. */
pub const DAYSEC: f64 = 86400.0;

/** Days per Julian year */
pub const DJY: f64 = 365.25;

/** Days per Julian century */
pub const DJC: f64 = 36525.0;

/** Days per Julian millennium */
pub const DJM: f64 = 365250.0;

/** Reference epoch (J2000.0), Julian Date */
pub const DJ00: f64 = 2451545.0;

/** Julian Date of Modified Julian Date zero */
pub const DJM0: f64 = 2400000.5;

/** Reference epoch (J2000.0), Modified Julian Date */
pub const DJM00: f64 = 51544.5;

/** 1977 Jan 1.0 as MJD */
pub const DJM77: f64 = 43144.0;

/** TT minus TAI (s) */
pub const TTMTAI: f64 = 32.184;

/** Astronomical unit (m, IAU 2012) */
pub const DAU: f64 = 149597870.7e3;

/** Speed of light (m/s) */
pub const CMPS: f64 = 299792458.0;

/** Light time for 1 au (s) */
pub const AULT: f64 = DAU / CMPS;

/** Speed of light (au per day) */
pub const DC: f64 = DAYSEC / AULT;

/** L_G = 1 - d(TT)/d(TCG) */
pub const ELG: f64 = 6.969290134e-10;

/** L_B = 1 - d(TDB)/d(TCB), and TDB (s) at TAI 1977/1/1.0 */
pub const ELB: f64 = 1.550519768e-8;
pub const TDB0: f64 = -6.55e-5;

/** Schwarzschild radius of the Sun (au) */
/** = 2 * 1.32712440041e20 / (2.99792458e8)^2 / 1.49597870700e11 */
pub const SRS: f64 = 1.97412574336e-8;

/* Reference ellipsoids */
pub const WGS84: std::os::raw::c_int = 1;
pub const GRS80: std::os::raw::c_int = 2;
pub const WGS72: std::os::raw::c_int = 3;