Hyperbola III: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 32: | Line 32: | ||
var phi = board.create('transform', [function(){ return alpha.Value() * Math.PI / 180; }], {type: 'rotate'}); | var phi = board.create('transform', [function(){ return alpha.Value() * Math.PI / 180; }], {type: 'rotate'}); | ||
var t = board.create('transform', [function(){ return | var t = board.create('transform', [function(){ return 2*f.Value(); }, function(){ return -f.Value(); }], {type: 'translate'}); | ||
t.bindTo([f1, f2, p, e1, e2, o]); | t.bindTo([f1, f2, p, e1, e2, o]); |