-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathorbit.h
executable file
·30 lines (21 loc) · 867 Bytes
/
orbit.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
#ifndef ORBIT_H
#define ORBIT_H
class Orbit {
public:
double get_periabsis () const;
double get_apoabsis () const;
double get_semiMinorAxis () const;
//parameters
double eccentricity; //0 < e < 1
double inclination; //0-180 degrees : tilt of the orbit : 0-90 pro grade
double semiMajorAxis; //AU : distance to center of ellipse
//position on orbit
double longOfAscendingNode; //0-360 degrees : inclination from ascending node (y axis)
double argumentOfPeriabsis; //0-360 degrees : position of the periabsis (z axis)
double trueAnomaly; //0-360 degrees : angle between periabsis and planet position
//calculate when all system is generated
double properSemiMajorAxis;
double properEccentricity;
double properInclination;
};
#endif