Test
Aus Wiki1
(Unterschied zwischen Versionen)
| Zeile 116: | Zeile 116: | ||
() => l1*Math.sin(theta1), | () => l1*Math.sin(theta1), | ||
() => -l1*Math.cos(theta1) | () => -l1*Math.cos(theta1) | ||
| - | ], {size: | + | ], {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: | + | ], {size:2, name:'', color:'blue', trace:true}); |
// Verbindungen | // Verbindungen | ||
| Zeile 128: | Zeile 128: | ||
// Animation | // Animation | ||
function step() { | function step() { | ||
| - | rk4(0. | + | rk4(0.01); |
brd.update(); | brd.update(); | ||
requestAnimationFrame(step); | requestAnimationFrame(step); | ||
Version vom 10:47, 5. Sep. 2025
