Polygon II: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) mNo edit summary |
||
Line 6: | Line 6: | ||
var rot = brd.create('transform',[function(){ return Math.atan2(p2.Y()-p1.Y(),p2.X()-p1.X()) + Math.PI/4;},p1],{type:'rotate'}); | var rot = brd.create('transform',[function(){ return Math.atan2(p2.Y()-p1.Y(),p2.X()-p1.X()) + Math.PI/4;},p1],{type:'rotate'}); | ||
var p3 = brd.create('point',[rot | var p3 = brd.create('point',[p2,rot],{fixed:true}); | ||
//var c2 = brd.create('circle',[p1,Math.sqrt(0.5*0.5+1.0)],{strokeOpacity:0.1}); | //var c2 = brd.create('circle',[p1,Math.sqrt(0.5*0.5+1.0)],{strokeOpacity:0.1}); |