api:documentation:math:start
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende ÜberarbeitungLetzte ÜberarbeitungBeide Seiten der Revision | ||
api:documentation:math:start [2021/05/31 17:24] – [Die Klasse String] Martin Pabst | api:documentation:math:start [2021/12/29 11:29] – Externe Bearbeitung 127.0.0.1 | ||
---|---|---|---|
Zeile 21: | Zeile 21: | ||
< | < | ||
- | <div class=" | + | <div class=" |
<script type=" | <script type=" | ||
+ | println(" | ||
+ | |||
Circle c = new Kreis1(400, 300, 100); | Circle c = new Kreis1(400, 300, 100); | ||
Zeile 33: | Zeile 35: | ||
p = new Polygon(false, | p = new Polygon(false, | ||
intersectionPoints.bringToFront(); | intersectionPoints.bringToFront(); | ||
+ | calculateIntersections(); | ||
+ | } | ||
+ | |||
+ | void calculateIntersections() { | ||
+ | |||
+ | Vector2[] points = MathTools.intersectCircleWithPolygon(getCenterX(), | ||
+ | intersectionPoints.destroyAllChildren(); | ||
+ | for(Vector2 point : points) { | ||
+ | | ||
+ | | ||
+ | | ||
+ | } | ||
+ | |||
} | } | ||
Zeile 56: | Zeile 71: | ||
| | ||
} | } | ||
- | } | ||
- | |||
- | void calculateIntersections() { | ||
- | |||
- | Vector2[] points = MathTools.intersectCircleWithPolygon(getCenterX(), | ||
- | intersectionPoints.destroyAllChildren(); | ||
- | for(Vector2 point : points) { | ||
- | | ||
- | | ||
- | | ||
- | } | ||
- | |||
} | } | ||
} | } |
api/documentation/math/start.txt · Zuletzt geändert: 2022/01/10 07:25 von Martin Pabst