Wiki-Quellcode von Circle Maths
Zuletzt geändert von jkat1 am 2021/03/08 19:57
Zeige letzte Bearbeiter
author | version | line-number | content |
---|---|---|---|
1 | (% class="row" style="display: flex; align-items: center; margin-bottom: 2em" %) | ||
2 | ((( | ||
3 | (% class="col-xs-12 col-sm-8" %) | ||
4 | ((( | ||
5 | (% class="badge infomessage" %)** MATH **(%%)** In dieser Anleitung erfährst du, wie du einen Kreis sticken kannst!** | ||
6 | |||
7 | //Hier kannst du die Beschreibung im [[PDF-Format >>attach:Kreis.pdf]]downloaden!// | ||
8 | ))) | ||
9 | |||
10 | (% class="col-xs-12 col-sm-4" %) | ||
11 | ((( | ||
12 | [[image:preview.png||alt="Kreis Example" style="float:right"]] | ||
13 | ))) | ||
14 | ))) | ||
15 | |||
16 | (% class="row" %) | ||
17 | ((( | ||
18 | (% class="col-xs-12 col-sm-6" %) | ||
19 | ((( | ||
20 | (% class="box" %) | ||
21 | ((( | ||
22 | **1. **Erstelle zuerst ein neues Stick-Objekt und gehe zu den Skripten! | ||
23 | //Wie du ein neues Stick Objekt erstellen kannst, erfährst du [[hier>>url:https://wiki.catrobat.org/bin/view/Education/Tutorials/Embroidery/Stick%20Objekt%20erstellen/]].// | ||
24 | ))) | ||
25 | ))) | ||
26 | |||
27 | (% class="col-xs-12 col-sm-6" %) | ||
28 | ((( | ||
29 | (% class="box" %) | ||
30 | ((( | ||
31 | **2. **Füge folgendes Skript hinzu! | ||
32 | |||
33 | [[image:Kreis.png]] | ||
34 | ))) | ||
35 | ))) | ||
36 | ))) | ||
37 | |||
38 | (% class="row" %) | ||
39 | ((( | ||
40 | (% class="col-xs-12 col-sm-6" %) | ||
41 | ((( | ||
42 | (% class="box infomessage" %) | ||
43 | ((( | ||
44 | == **Kreisgleichung** == | ||
45 | |||
46 | === **(x-m_x)^2+(y-m_y)^2~=r^2** === | ||
47 | |||
48 | === === | ||
49 | |||
50 | m_x ist die x-Koordinate des Mittelpunktes | ||
51 | |||
52 | m_y ist die y-Koordinate des Mittelpunktes | ||
53 | |||
54 | Setzte die Startposition für den Kreis | ||
55 | ))) | ||
56 | ))) | ||
57 | |||
58 | (% class="col-xs-12 col-sm-6" %) | ||
59 | ((( | ||
60 | (% class="box infomessage" %) | ||
61 | ((( | ||
62 | === **Berechne die X-Koordinate** === | ||
63 | |||
64 | durch umformen der Kreisgleichung | ||
65 | |||
66 | [[image:hint.png||alt="Hinweis Kreis"]] | ||
67 | |||
68 | Beim ersten Mal wird die Formel ohne Minus davor und beim zweiten Mal mit Minus berechnet. Der Rest der Formel ist die Selbe. | ||
69 | ))) | ||
70 | ))) | ||
71 | ))) | ||
72 | |||
73 | (% class="row" %) | ||
74 | ((( | ||
75 | (% class="col-xs-12 col-sm-6" %) | ||
76 | ((( | ||
77 | (% class="box" %) | ||
78 | ((( | ||
79 | **3. **Kontrolliere die Bausteine, falls es noch nicht klappt. | ||
80 | ))) | ||
81 | ))) | ||
82 | ))) |