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 c = brd.create('circle',[[0,0],3],{strokeColor:'black'});
var c = brd.create('circle',[[0,0],3],{strokeColor:'black'}); // outer circle
 
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, visible:false});  
var t = brd.create('polar', [c,p], {strokeColor:'gray', dash:2, visible:false});  
Line 13: Line 14:
var A = brd.create('intersection', [l,t,0], {withLabel:true,visible:false});
var A = brd.create('intersection', [l,t,0], {withLabel:true,visible:false});
var M = brd.create('midpoint',[pp,A], {withLabel:true,visible:false});
var M = brd.create('midpoint',[pp,A], {withLabel:true,visible:false});
//var p0 = brd.create('perpendicularpoint',[l,M], {withLabel:true,visible:false});
//var line = brd.create('line', [p0,M], {name:'', withLabel:false, strokeColor:'gray', dash:1});
var line = brd.create('perpendicular',[l,M], {name:'', withLabel:false, strokeColor:'gray', dash:1, straightFirst:true, straightLast:true});
var line = brd.create('perpendicular',[l,M], {name:'', withLabel:false, strokeColor:'gray', dash:1, straightFirst:true, straightLast:true});
line[1].setProperty({'visible':false});
line[1].setProperty({'visible':false});

Revision as of 08:30, 30 July 2010

References

  • Chaim Goodman-Strauss, "Compass and Straightedge in the Poincare Disk", Am. Math. Monthly 108 (2001), 38-49.