de-CH
utf-8
math math-format graphie interactive
Interactive Demo: Validate
demo-01
custom
8
randRange(1,8)
style({ stroke: "black", strokeWidth: 2 }); graphInit({ range: [[-11, 11], [-9, 9]], scale: [22, 22], tickStep: 2, labelStep: 1 }); addMouseLayer(); label([-2,0], "\\llap{-}2", "below"); label([0,-2], "\\llap{-}2", "left"); var radius = X; graph.p_center = addMovablePoint({ coord: [ 0, 0 ], constraints: { fixed: true } }); graph.p_radius = addMovablePoint({ coord: [ radius, 0 ], /*constraints: { fixedDistance: { dist: 4.0, point: graph.p_center } },*/ onMove: function(x, y) { var angle = Math.atan2(y, x); var rAngle = Math.round(angle / (Math.PI / 8.0)) * Math.PI / 8.0; graph.p_radius.setCoord([radius * Math.cos(rAngle), radius * Math.sin(rAngle)]); graph.p_radius.updateLineEnds(); return false; } }); graph.line1 = addMovableLineSegment({ pointA: graph.p_center, pointZ: graph.p_radius, fixed: true });

[graph.p_radius.coord]
console.log(guess[0]); return true;