Hyperbola III: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 20: Line 20:
var t0 = board.create('transform', [-2, 1], {type: 'translate'});
var t0 = board.create('transform', [-2, 1], {type: 'translate'});
t0.applyOnce([f1, f2, p, o, e1, e2]);
t0.applyOnce([f1, f2, p, o, e1, e2]);
phi0.applyOnce([f1, f2, p]);
phi0.applyOnce([f1, f2, p, o, e1, e2]);


var hyp = board.create('hyperbola', [f1, f2, p]);
var hyp = board.create('hyperbola', [f1, f2, p]);


var ax_z1 = board.create('line', [o, e1], {lastArrow: true, strokeColor:'black'});
var ax_z1 = board.create('line', [o, e1], {lastArrow: true, strokeColor:'black'});
var ax_z2 = board.create('line', [o, e2], {firstArrow: true, strokeColor:'black'});
var ax_z2 = board.create('line', [o, e2], {lastArrow: true, strokeColor:'black'});
board.update();
board.update();



Revision as of 15:14, 6 July 2021

The underlying JavaScript code