Deleted the old Orbit.
[Orbitizer.git] /
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/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, Orbit = None):
		self.Name = Name
		self.Mass = Mass
		self.Radius = Radius
		self.Orbit = Orbit
	
	# Gravitational parameter µ in m³/s²
	def GravParm(self):
		return self.Mass * G