Hyperbola III: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 8: | Line 8: | ||
const sq5 = Math.sqrt(5); | const sq5 = Math.sqrt(5); | ||
var f1 = board.create('point', [-sq5 | var f1 = board.create('point', [0, -sq5], {name:"f'"}); | ||
var f2 = board.create('point', [ sq5 | var f2 = board.create('point', [0, sq5], {name:"f"}); | ||
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]) | phi.applyOnce([f1, f2]) | ||
var t = board.create('transform', [-2, 1], {type: 'translate'}); | var t = board.create('transform', [-2, 1], {type: 'translate'}); |