Poincare disc model: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 2: Line 2:
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 p = brd.create('point',[1,2],{withLabel:false});
var p = brd.create('point',[0,-4],{withLabel:false});
var t = brd.create('polar', [c,p], {strokeColor:'gray', dash:2});
var s1 = brd.create('intersection', [c,t,0], {withLabel:false});  
var s2 = brd.create('intersection', [c,t,1], {withLabel:false});
var arc = brd.create('arc',[p,s1,s2]);
 
/*
var l = brd.create('line',[[0,0],p],{dash:1});
var l = brd.create('line',[[0,0],p],{dash:1});


Line 15: Line 21:
var s2 = brd.create('intersection', [c,t2,1], {withLabel:false});  
var s2 = brd.create('intersection', [c,t2,1], {withLabel:false});  
var arc = brd.create('circle',[pp,s1]);
var arc = brd.create('circle',[pp,s1]);
*/
</jsxgraph>
</jsxgraph>

Revision as of 15:16, 21 July 2010