Beispiel #1
0
 def earth():
     """Конструктор Земли (статической)"""
     earth = SpaceObject('Earth',
                         mass=5.97219E24,
                         radius=unit.dimension.km(6371))
     earth.isStatic = True
     StaticSpaceObjectController().attach(earth)
     return earth
Beispiel #2
0
 def moon():
     """Конструктор Луны"""
     moon = SpaceObject('Moon', mass = 5.97219E24, radius = 1.73814E6);
     moon.position = Vector(0, 4.05696E8)
     moon.velocity = Vector(1.023E3, 0)
     return moon
Beispiel #3
0
 def earth():
     """Конструктор Земли (статической)"""
     earth = SpaceObject('Earth', mass = 5.97219E24, radius = unit.dimension.km(6371))
     earth.isStatic = True
     StaticSpaceObjectController().attach(earth)
     return earth
Beispiel #4
0
 def moon():
     """Конструктор Луны"""
     moon = SpaceObject('Moon', mass=5.97219E24, radius=1.73814E6)
     moon.position = Vector(0, 4.05696E8)
     moon.velocity = Vector(1.023E3, 0)
     return moon