Polygon II: Difference between revisions

From JSXGraph Wiki
No edit summary
No edit summary
Line 5: Line 5:
var p2 = brd.create('glider',[1,-1,c]);
var p2 = brd.create('glider',[1,-1,c]);
var p3 = brd.create('point',[0,0.5]);
var p3 = brd.create('point',[0,0.5]);
var rot = brd.create('transform',[function(){ return Math.atan2(p2.Y()-p1.Y(),p2.X()-p1.X());},p1],{type:rotate});
var rot = brd.create('transform',[function(){ return Math.atan2(p2.Y()-p1.Y(),p2.X()-p1.X());},p1],{type:'rotate'});
rot.bindTo(p3);
rot.bindTo(p3);


</jsxgraph>
</jsxgraph>

Revision as of 10:38, 3 March 2010