Polygon II: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 2: Line 2:
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-3,3,3,-3]});
var brd = JXG.JSXGraph.initBoard('jxgbox',{boundingbox:[-3,3,3,-3]});
var p1 = brd.create('point',[-1,-1]);
var p1 = brd.create('point',[-1,-1]);
var c = brd.create('circle',[p1,2],{strokeOpacity:0.1});
var c1 = brd.create('circle',[p1,2],{strokeOpacity:0.1});
var p2 = brd.create('glider',[1,-1,c]);
var p2 = brd.create('glider',[1,-1,c1]);
var p3 = brd.create('point',
 
            [function(){return (p1.X()+p2.X())*0.5;},
 
            function(){return (p1.Y()+p2.Y())*0.7;}
var c2 = brd.create('circle',[p1,Math.sqrt(0.5*0.5+1.0)],{strokeOpacity:0.1});
            ]);
var p3 = brd.create('glider',[0,0.5,c2]);


var poly = brd.create('polygon',[p1,p2,p3], {fillOpacity:0.05});
var poly = brd.create('polygon',[p1,p2,p3], {fillOpacity:0.05});


</jsxgraph>
</jsxgraph>

Revision as of 10:49, 3 March 2010