Skip to content
Snippets Groups Projects
Commit bbc16e4d authored by orestis.malaspin's avatar orestis.malaspin
Browse files

Merge branch 'pk' into 'master'

Pk

See merge request !9
parents 37614e9f 543b2433
No related branches found
No related tags found
No related merge requests found
......@@ -811,14 +811,16 @@ Pour calculer la force sur un corps `c`, on parcourt l'arbre en commençant par
## Écrire le psuedo-code du calcul de la force
\footnotesize
```C
rien maj_force_sur_etoile(arbre, e, theta)
si est_vide(arbre)
retourne
si est_feuille(arbre) && contient_etoile(n) && dans_le_quadrant(arbre.q, e.x)
si est_feuille(arbre) && contient_etoile(arbre) && dans_le_quadrant(arbre.q, e.x)
maj_force(e, arbre.e)
sinon si noed_assez_loin(arbre, e, theta)
sinon si noeud_assez_loin(arbre, e, theta)
maj_force(e, arbre.sup_etoile)
sinon
pour enfant dans enfants
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment