aide_draw package

Submodules

aide_draw.utils module

General purpose utility library..

class aide_draw.utils.Constants[source]

Bases: object

Constants.

class Earth[source]

Bases: object

Earth constants.

GRAVITY = 9.80665
class Constants.Mars[source]

Bases: object

Mars constants.

GRAVITY = 9
aide_draw.utils.circumference(radius)[source]

Calculate the circumference of an object.

2*pi*r

>>> from math import *
>>> round(circumference(600000), 3)
3769911.184
aide_draw.utils.orbital_period(planet, planatary_radius, altitude)[source]

Calculate the orbital period of an object.

d = v*t

>>> from math import *
>>> round(orbital_period(Constants.Earth, 600000, 70), 3)
1554.43
aide_draw.utils.orbital_speed(planet, planatary_radius, altitude)[source]

Calculate the orbital speed of an object.

v = R*sqrt(g/(R+h))

>>> from math import *
>>> round(orbital_speed(Constants.Earth, 600000, 70), 3)
2425.552

Module contents