Difference between revisions of "Poincare disc model"

From JSXGraph Wiki
Jump to navigationJump to search
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 t = brd.create('polar', [c,pp], {strokeColor:'gray', dash:2});  
+
var t2 = brd.create('polar', [c,pp], {strokeColor:'gray', dash:2});  
var s1 = brd.create('intersection', [c,t,0], {withLabel:false});  
+
var s1 = brd.create('intersection', [c,t2,0], {withLabel:false});  
var s2 = brd.create('intersection', [c,t,1], {withLabel:false});  
+
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>

Revision as of 16:40, 21 July 2010