Rectangles: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 10: Line 10:
p4.isDraggable = true;
p4.isDraggable = true;
</jsxgraph>
</jsxgraph>
<jsxgraph width="300" height="300" box="box2">
var b2 = JXG.JSXGraph.initBoard('box2', {boundingbox: [-5, 5, 5, -5], grid:true});
var p1 = b2.create('point', [-2,-2]),
    p2 = b2.create('point', [3,3]),
    pm = b2.create('midpoint', [p1, p2], {visible: false}),
    circ = b2.create('circle', [pm, p1], {visible:false}),
    p3 = b2.create('glider', [-2, 3, circ], {color:'blue'}),
    t = b2.create('transform', [p3, pm], {type: 'reflect'});
    p4 = b2.create('point', [p3, t], {color:'blue'}),
    rect = b2.create('polygon',[p1,p3,p2,p4],{hasInnerPoints:true});
p3.isDraggable = true;
p4.isDraggable = true;
</jsxgraph>




[[Category:Examples]]
[[Category:Examples]]

Revision as of 13:59, 14 October 2014