Poincare disc model: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 3: | Line 3: | ||
var c = brd.create('circle',[[0,0],3],{strokeColor:'black'}); | var c = brd.create('circle',[[0,0],3],{strokeColor:'black'}); | ||
var p = brd.create('point',[1,2],{withLabel:false}); | var p = brd.create('point',[1,2],{withLabel:false}); | ||
var line = brd.create('polar', [c,p], {strokeColor:'gray', dash:2}); | var t = brd.create('polar', [c,p], {name:'polar', withLabel:true, strokeColor:'gray', dash:2}); | ||
var l = brd.create('line', [[0,0],p], {name:'', withLabel:false, strokeColor:'gray', dash:2}); | |||
//var s = brd.create('intersection', [l,t,0], {name:"P'", withLabel:true, trace:true}); | |||
//var line = brd.create('polar', [c,p], {strokeColor:'gray', dash:2}); | |||
var pp = brd.create('point',[-4,4],{name:'drag me',trace:true}); | var pp = brd.create('point',[-4,4],{name:'drag me',trace:true}); | ||
var | var t2 = brd.create('polar', [c,pp], {strokeColor:'gray', dash:2}); | ||
var s1 = brd.create('intersection', [c, | var s1 = brd.create('intersection', [c,t2,0], {withLabel:false}); | ||
var s2 = brd.create('intersection', [c, | var s2 = brd.create('intersection', [c,t2,1], {withLabel:false}); | ||
var arc = brd.create('arc',[pp,s1,s2]); | var arc = brd.create('arc',[pp,s1,s2]); | ||
</jsxgraph> | </jsxgraph> |