Rolling Reuleaux triangle: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 23: | Line 23: | ||
var reuleauxTriangle = brd.create('curve', JXG.Math.Numerics.reuleauxPolygon(pol3.vertices, 3), | var reuleauxTriangle = brd.create('curve', JXG.Math.Numerics.reuleauxPolygon(pol3.vertices, 3), | ||
{strokeWidth:6, strokeColor:'#d66d55', fillColor:'#ad5544', highlightFillColor:'#ad5544'}); | {strokeWidth:6, strokeColor:'#d66d55', fillColor:'#ad5544', highlightFillColor:'#ad5544'}); | ||
var S = brd.create('point', [ | |||
function(){return pol3.vertices[0].X()+pol3.vertices[1].X()+pol3.vertices[2].X(); }, | |||
function(){return pol3.vertices[0].Y()+pol3.vertices[1].Y()+pol3.vertices[2].Y(); }], | |||
strokeColor:'#703545', fillColor:'#703545', highlightFillColor:'#703545'}); | |||
brd.unsuspendUpdate(); | brd.unsuspendUpdate(); | ||
var rol3 = JXG.Math.Numerics.createRoulette(line, reuleauxTriangle, -2, Math.PI/90, 1, 50, [A,B]); | var rol3 = JXG.Math.Numerics.createRoulette(line, reuleauxTriangle, -2, Math.PI/90, 1, 50, [A,B]); |