Rectangles: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) (Created page with "<jsxgraph width="300" height="300" box="box1"> var b1 = JXG.JSXGraph.initBoard('box1', {boundingbox: [-5, 5, 5, -5], grid:true}); var p1 = b1.create('point', [-2,-2]), p2 = b...") |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 5: | Line 5: | ||
p3 = b1.create('point', [function(){return p1.X()},function(){return p2.Y()}]), | p3 = b1.create('point', [function(){return p1.X()},function(){return p2.Y()}]), | ||
p4 = b1.create('point', [function(){return p2.X()},function(){return p1.Y()}]), | p4 = b1.create('point', [function(){return p2.X()},function(){return p1.Y()}]), | ||
rect = | rect = b1.create('polygon',[p1,p3,p2,p4],{hasInnerPoints:true}); | ||
p3.isDraggable = true; | p3.isDraggable = true; |