Hyperbola III: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 10: | Line 10: | ||
var f1 = board.create('point', [0, -sq5], {name:"f'"}); | var f1 = board.create('point', [0, -sq5], {name:"f'"}); | ||
var f2 = board.create('point', [0, sq5], {name:"f"}); | var f2 = board.create('point', [0, sq5], {name:"f"}); | ||
var p = board.create('point', [0, | var p = board.create('point', [0, 0, {name:"p"}); //-0.9428 | ||
var phi = board.create('transform', [-Math.PI * 0.25], {type: 'rotate'}); | var phi = board.create('transform', [-Math.PI * 0.25], {type: 'rotate'}); | ||
var t = board.create('transform', [ | var t = board.create('transform', [2, 1], {type: 'translate'}); | ||
t.applyOnce([f1, f2]) | t.applyOnce([f1, f2, p]); | ||
phi.applyOnce([f1, f2]) | //phi.applyOnce([f1, f2]); | ||