Hyperbola III: Difference between revisions

From JSXGraph Wiki
No edit summary
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 f.Value()*2, -f.Value(); }], {type: 'translate'});
var t = board.create('transform', [function(){ return f.Value()*2; }, function(){ return -f.Value(); }], {type: 'translate'});


phi.bindTo([f1, f2, p]);
phi.bindTo([f1, f2, p]);

Revision as of 15:19, 6 July 2021

The underlying JavaScript code