Hyperbola III: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 30: | Line 30: | ||
var alpha = board.create('slider', [[1,4], [3,4], [0, 0, 45]], {name:'α', unitLabel:'°'}); | var alpha = board.create('slider', [[1,4], [3,4], [0, 0, 45]], {name:'α', unitLabel:'°'}); | ||
var f = board.create('slider', [[1,3.5], [3,3.5], [0, 0, 1]], {name:'f'}); | var f = board.create('slider', [[1,3.5], [3,3.5], [0, 0, 1]], {name:'f'}); | ||
var phi = board.create('transform', [function(){ return alpha.Value() * Math.PI / 180; }, o.X(), o.Y()], {type: 'rotate'}); | var phi = board.create('transform', [function(){ return alpha.Value() * Math.PI / 180; }, o.X(), o.Y()], {type: 'rotate'}); | ||
var t = board.create('transform', [function(){ return f.Value()*2; }, function(){ return -f.Value(); }], {type: 'translate'}); | var t = board.create('transform', [function(){ return f.Value()*2; }, function(){ return -f.Value(); }], {type: 'translate'}); |