A whole bunch of possibly-wrong changes to Orbit.
[Orbitizer.git] / Body.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/usr/bin/python3
 
# Gravitational Constant in m³/(kg×s²)
G = 6.67384e-11
 
class Body():
        # Mass in kg, Radius in m.
        def __init__(self, Name, Mass = None, Radius = None):
                self.Name = Name
                self.Mass = Mass
                self.Radius = Radius
        
        # Gravitational parameter µ in m³/s²
        def GravParm(self):
                return self.Mass * G