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