Poincare disc model: Difference between revisions

From JSXGraph Wiki
No edit summary
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 m = brd.create('point',[0,0],{name:'', fixed:true, withLabel:false});
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',[-4,4],{name:'P [drag me]'});
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,p], {name:'polar', withLabel:true, strokeColor:'gray', dash:2});  
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',[p,s1,s2]);
var arc = brd.create('arc',[pp,s1,s2]);


</jsxgraph>
</jsxgraph>

Revision as of 14:30, 21 July 2010