Hyperbola III: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 16: Line 16:
var e2 = board.create('point', [0, 1], {withLabel:false, color: 'blue'});
var e2 = board.create('point', [0, 1], {withLabel:false, color: 'blue'});


var phi = board.create('transform', [-Math.PI * 0.25], {type: 'rotate'});
var phi0 = board.create('transform', [-Math.PI * 0.25], {type: 'rotate'});
var t = board.create('transform', [-2, 1], {type: 'translate'});
var t0 = board.create('transform', [-2, 1], {type: 'translate'});
t.applyOnce([f1, f2, p, o, e1, e2]);
t0.applyOnce([f1, f2, p, o, e1, e2]);
phi.applyOnce([f1, f2, p, o, e1, e2]);
phi0.applyOnce([f1, f2, p, o, e1, e2]);
 


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

Revision as of 15:06, 6 July 2021

The underlying JavaScript code