Rectangles: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 16: Line 16:
var p1 = b2.create('point', [-2,-2]),
var p1 = b2.create('point', [-2,-2]),
     p2 = b2.create('point', [3,3]),
     p2 = b2.create('point', [3,3]),
     pm = b2.create('midpoint', [p1, p2], {visible: false}),
     pm = b2.create('midpoint', [p1, p2], {visible: true}),
     circ = b2.create('circle', [pm, p1], {visible:false}),
     circ = b2.create('circle', [pm, p1], {visible:true}),
     p3 = b2.create('glider', [-2, 3, circ], {color:'blue'}),
     p3 = b2.create('glider', [-2, 3, circ], {color:'blue'}),
     t = b2.create('transform', [180, function() {return pm.X();}, function() { return pm.Y();}], {type: 'rotate'}),
     t = b2.create('transform', [180, function() {return pm.X();}, function() { return pm.Y();}], {type: 'rotate'}),

Revision as of 14:04, 14 October 2014