Polygon II: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 4: | Line 4: | ||
var c = brd.create('circle',[p1,2],{strokeOpacity:0.1}); | var c = brd.create('circle',[p1,2],{strokeOpacity:0.1}); | ||
var p2 = brd.create('glider',[1,-1,c]); | var p2 = brd.create('glider',[1,-1,c]); | ||
var p3 = brd.create('point', | var p3 = brd.create('point', | ||
[function(){return (p1.X()+p2.X())*0.5;}, | |||
function(){return (p1.Y()+p2.Y())*0.7;} | |||
]); | |||
var poly = brd.create('polygon',[p1,p2,p3], {fillOpacity:0.05}); | var poly = brd.create('polygon',[p1,p2,p3], {fillOpacity:0.05}); | ||
</jsxgraph> | </jsxgraph> |