Commit 9e96a0bd8fe5ee422f16853bae074b557137ddfb

Authored by Rémi Emonet
1 parent ef8d4893eb
Exists in master

Tortue pas comme un objet

Showing 1 changed file with 11 additions and 11 deletions

11-biblio-qtido/index.html View file @ 9e96a0b
... ... @@ -3,7 +3,7 @@
3 3 <head>
4 4 <meta charset="utf-8">
5 5 <meta http-equiv="X-UA-Compatible" content="IE=edge">
6   - <meta http-equiv="last-modified" content="2018-01-29 11:35:44 +0100">
  6 + <meta http-equiv="last-modified" content="2018-02-14 13:50:19 +0100">
7 7 <meta name="viewport" content="width=device-width, initial-scale=1">
8 8 <!-- meta "search-domain" used for google site search function google_search() -->
9 9 <meta name="search-domain" value="">
... ... @@ -242,11 +242,11 @@
242 242 <span class="n">f</span> <span class="o">=</span> <span class="n">creer</span><span class="p">(</span><span class="mi">800</span><span class="p">,</span> <span class="mi">600</span><span class="p">)</span>
243 243 <span class="n">t</span> <span class="o">=</span> <span class="n">creer_tortue</span><span class="p">(</span><span class="n">f</span><span class="p">)</span>
244 244  
245   -<span class="n">t</span><span class="o">.</span><span class="n">tortue_avance</span><span class="p">(</span><span class="mi">100</span><span class="p">)</span>
246   -<span class="n">t</span><span class="o">.</span><span class="n">tortue_droite</span><span class="p">(</span><span class="mi">120</span><span class="p">)</span>
247   -<span class="n">t</span><span class="o">.</span><span class="n">tortue_avance</span><span class="p">(</span><span class="mi">100</span><span class="p">)</span>
248   -<span class="n">t</span><span class="o">.</span><span class="n">tortue_droite</span><span class="p">(</span><span class="mi">120</span><span class="p">)</span>
249   -<span class="n">t</span><span class="o">.</span><span class="n">tortue_avance</span><span class="p">(</span><span class="mi">100</span><span class="p">)</span>
  245 +<span class="n">tortue_avance</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="mi">100</span><span class="p">)</span>
  246 +<span class="n">tortue_droite</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="mi">120</span><span class="p">)</span>
  247 +<span class="n">tortue_avance</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="mi">100</span><span class="p">)</span>
  248 +<span class="n">tortue_droite</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="mi">120</span><span class="p">)</span>
  249 +<span class="n">tortue_avance</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="mi">100</span><span class="p">)</span>
250 250 </code></pre>
251 251 </div>
252 252  
253 253  
... ... @@ -266,12 +266,12 @@
266 266 <span class="n">f</span> <span class="o">=</span> <span class="n">creer</span><span class="p">(</span><span class="mi">800</span><span class="p">,</span> <span class="mi">600</span><span class="p">)</span>
267 267 <span class="n">t</span> <span class="o">=</span> <span class="n">creer_tortue</span><span class="p">(</span><span class="n">f</span><span class="p">)</span>
268 268  
269   -<span class="n">t</span><span class="o">.</span><span class="n">tortue_avance</span><span class="p">(</span><span class="mi">40</span><span class="p">)</span>
270   -<span class="n">t</span><span class="o">.</span><span class="n">tortue_droite</span><span class="p">(</span><span class="mi">90</span><span class="p">)</span>
271   -<span class="n">t</span><span class="o">.</span><span class="n">tortue_avance</span><span class="p">(</span><span class="mi">30</span><span class="p">)</span>
  269 +<span class="n">tortue_avance</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="mi">40</span><span class="p">)</span>
  270 +<span class="n">tortue_droite</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="mi">90</span><span class="p">)</span>
  271 +<span class="n">tortue_avance</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="mi">30</span><span class="p">)</span>
272 272 <span class="n">a</span> <span class="o">=</span> <span class="mi">90</span> <span class="o">+</span> <span class="n">math</span><span class="o">.</span><span class="n">degrees</span><span class="p">(</span><span class="n">math</span><span class="o">.</span><span class="n">acos</span><span class="p">(</span><span class="mi">40</span> <span class="o">/</span> <span class="mi">50</span><span class="p">))</span>
273   -<span class="n">t</span><span class="o">.</span><span class="n">tortue_droite</span><span class="p">(</span><span class="n">a</span><span class="p">)</span>
274   -<span class="n">t</span><span class="o">.</span><span class="n">tortue_avance</span><span class="p">(</span><span class="mi">50</span><span class="p">)</span>
  273 +<span class="n">tortue_droite</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="n">a</span><span class="p">)</span>
  274 +<span class="n">tortue_avance</span><span class="p">(</span><span class="n">t</span><span class="p">,</span> <span class="mi">50</span><span class="p">)</span>
275 275 </code></pre>
276 276 </div>
277 277 </blockquote>