Poincare disc model: Difference between revisions

From JSXGraph Wiki
No edit summary
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',[0,-4],{withLabel:false});
var p = brd.create('point',[0,-4],{withLabel:false});
var t = brd.create('polar', [c,p], {strokeColor:'gray', dash:2});  
var t = brd.create('polar', [c,p], {strokeColor:'gray', dash:2, visible:false});  
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});  
Line 19: Line 19:
var x = brd.create('glider',[3,3,line], {name:'drag me'});
var x = brd.create('glider',[3,3,line], {name:'drag me'});


var t2 = brd.create('polar', [c,x], {strokeColor:'gray', dash:2});  
var t2 = brd.create('polar', [c,x], {strokeColor:'gray', dash:2, visible:false});  
var s1 = brd.create('intersection', [c,t2,0], {withLabel:false});  
var s1 = brd.create('intersection', [c,t2,0], {withLabel:false});  
var s2 = brd.create('intersection', [c,t2,1], {withLabel:false});  
var s2 = brd.create('intersection', [c,t2,1], {withLabel:false});  
var arc = brd.create('circumcirclearc',[s1,pp,s2]);
var arc = brd.create('circumcirclearc',[s1,pp,s2], {trace:true});
</jsxgraph>
</jsxgraph>

Revision as of 15:46, 21 July 2010