Three touching circles: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 1: Line 1:
<jsxgraph width="500" height="500">
<jsxgraph width="500" height="500">
var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-5,5,5,-5]});
var brd = JXG.JSXGraph.initBoard('jxgbox', {boundingbox:[-2,5,5,-2]});
var A  = brd.create('point', [0,0]),
var A  = brd.create('point', [0,0]),
     B  = brd.create('point', [2,0]),
     B  = brd.create('point', [2,0]),
Line 6: Line 6:
     a1 = brd.create('segment', [A,B], {name:'a1', withLabel:true}),
     a1 = brd.create('segment', [A,B], {name:'a1', withLabel:true}),
     a2 = brd.create('segment', [B,C], {name:'a2', withLabel:true}),
     a2 = brd.create('segment', [B,C], {name:'a2', withLabel:true}),
     a3 = brd.create('segment', [C,A], {name:'a3', withLabel:true});
     a3 = brd.create('segment', [C,A], {name:'a3', withLabel:true}),
    c1 = brd.create('circle', [A,
            function(){ return A.Dist(B); }]);
 
   


</jsxgraph>
</jsxgraph>

Revision as of 10:39, 8 November 2011