Test

Aus Wiki1

(Unterschied zwischen Versionen)
Wechseln zu: Navigation, Suche
Zeile 116: Zeile 116:
       () => l1*Math.sin(theta1),
       () => l1*Math.sin(theta1),
       () => -l1*Math.cos(theta1)
       () => -l1*Math.cos(theta1)
-
     ], {size:4, name:'', color:'red'});
+
     ], {size:2, name:'', color:'red'});
     let p2 = brd.create('point', [
     let p2 = brd.create('point', [
       () => l1*Math.sin(theta1) + l2*Math.sin(theta2),
       () => l1*Math.sin(theta1) + l2*Math.sin(theta2),
       () => -l1*Math.cos(theta1) - l2*Math.cos(theta2)
       () => -l1*Math.cos(theta1) - l2*Math.cos(theta2)
-
     ], {size:4, name:'', color:'blue', trace:true});
+
     ], {size:2, name:'', color:'blue', trace:true});
     // Verbindungen
     // Verbindungen
Zeile 128: Zeile 128:
     // Animation
     // Animation
     function step() {
     function step() {
-
       rk4(0.02);
+
       rk4(0.01);
       brd.update();
       brd.update();
       requestAnimationFrame(step);
       requestAnimationFrame(step);

Version vom 10:47, 5. Sep. 2025


Persönliche Werkzeuge