Hyperbola III: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 10: Line 10:
var f1 = board.create('point', [-sq5, 0], {name:"f'"});
var f1 = board.create('point', [-sq5, 0], {name:"f'"});
var f2 = board.create('point', [ sq5, 0], {name:"f"});
var f2 = board.create('point', [ sq5, 0], {name:"f"});
var p  = board.create('point', [4, Math.sqrt(3)], {name:"p"});


var phi = board.create('transform', [Math.PI * 0.25], {type: 'rotate'});
var phi = board.create('transform', [Math.PI * 0.25], {type: 'rotate'});
phi.applyOnce([f1, f2, p])
phi.applyOnce([f1, f2])
var t = board.create('transform', [-2, 1], {type: 'translate'});
var t = board.create('transform', [-2, 1], {type: 'translate'});
t.applyOnce([f1, f2, p])
t.applyOnce([f1, f2])
 
var p  = board.create('point', [0, -0.9428], {name:"p"});
 


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

Revision as of 07:54, 6 July 2021

The underlying JavaScript code