Difference between revisions of "Rectangles"

From JSXGraph Wiki
Jump to navigationJump to search
(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...")
 
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 = board.create('polygon',[p1,p3,p2,p4],{hasInnerPoints:true});
+
     rect = b1.create('polygon',[p1,p3,p2,p4],{hasInnerPoints:true});
  
 
p3.isDraggable = true;
 
p3.isDraggable = true;

Revision as of 14:53, 14 October 2014