Rolling Reuleaux triangle: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 24: | Line 24: | ||
{strokeWidth:6, strokeColor:'#d66d55', fillColor:'#ad5544', highlightFillColor:'#ad5544'}); | {strokeWidth:6, strokeColor:'#d66d55', fillColor:'#ad5544', highlightFillColor:'#ad5544'}); | ||
var S = brd.create('point', [ | var S = brd.create('point', [ | ||
function(){return pol3.vertices[0].X()+pol3.vertices[1].X()+pol3.vertices[2].X(); }, | function(){return (pol3.vertices[0].X()+pol3.vertices[1].X()+pol3.vertices[2].X())/3; }, | ||
function(){return pol3.vertices[0].Y()+pol3.vertices[1].Y()+pol3.vertices[2].Y(); }], | function(){return (pol3.vertices[0].Y()+pol3.vertices[1].Y()+pol3.vertices[2].Y())/3; }], | ||
{strokeColor:'#703545', fillColor:'#703545', highlightFillColor:'#703545'}); | {strokeColor:'#703545', fillColor:'#703545', highlightFillColor:'#703545', name:'S'}); | ||
brd.unsuspendUpdate(); | brd.unsuspendUpdate(); |