\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82
| Path : /lib64/python3.9/turtledemo/__pycache__/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //lib64/python3.9/turtledemo/__pycache__/planet_and_moon.cpython-39.pyc |
a
�i � @ s` d Z ddlmZmZmZmZ dZG dd� de�Z G dd� de�Z
dd � Zed
kr\e� e� dS )a� turtle-example-suite:
tdemo_planets_and_moon.py
Gravitational system simulation using the
approximation method from Feynman-lectures,
p.9-8, using turtlegraphics.
Example: heavy central body, light planet,
very light moon!
Planet has a circular orbit, moon a stable
orbit around the planet.
You can hold the movement temporarily by
pressing the left mouse button with the
mouse over the scrollbar of the canvas.
� )�Shape�Turtle�mainloop�Vec2D� c @ s$ e Zd Zdd� Zdd� Zdd� ZdS )�GravSysc C s g | _ d| _d| _d S )Nr g{�G�z�?)�planets�t�dt)�self� r �2/usr/lib64/python3.9/turtledemo/planet_and_moon.py�__init__ s zGravSys.__init__c C s | j D ]}|�� qd S )N)r �init)r �pr r r
r s
zGravSys.initc C s6 t d�D ](}| j| j7 _| jD ]}|�� q"qd S )Ni'