-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathPlanets.h
40 lines (26 loc) · 1.05 KB
/
Planets.h
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
#ifndef PLANETS_H
#define PLANETS_H
#include<vector>
#include"OrbitalElements.h"
class Planets{
public:
Planets(double year, double month, double day, double hour, double minute);
std::vector<OrbitalElements> getPlanets();
private:
void computePositions(double);
double computeCurrentDay(double year, double month, double day, double hour, double minute);
void pertubations(OrbitalElements* jupiterOE, OrbitalElements* saturnOE, OrbitalElements* uranusOE);
OrbitalElements computeMercuryOE(double);
OrbitalElements computeVenusOE(double);
OrbitalElements computeEarthOE(double);
OrbitalElements computeMarsOE(double);
OrbitalElements computeJupiterOE(double);
OrbitalElements computeSaturnOE(double);
OrbitalElements computeUranusOE(double);
OrbitalElements computeNeptuneOE(double);
std::vector<OrbitalElements> planets;
double radians(double x);
double rev(double x);
double degrees(double x);
};
#endif // PLANETS_H