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 pp = brd.create('point',[-4,4],{name:'drag me',trace:true});
+
var l = brd.create('line',[[0,0],p],{dash:1});
 +
 
 +
var x = brd.create('glider',[3,3,l]);
 +
var l2 = brd.create('perpendicular',[l,x]);
 +
 
 +
 
 +
var pp = brd.create('glider',[-4,4,l2],{name:'drag me',trace:true});
  
var l = brd.create('line',[[0,0],p],{dash:1});
 
 
var t2 = 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,t2,0], {withLabel:false});  
 
var s1 = brd.create('intersection', [c,t2,0], {withLabel:false});  

Revision as of 16:59, 21 July 2010