Circle approximation: Difference between revisions
From JSXGraph Wiki
A WASSERMANN (talk | contribs) No edit summary |
A WASSERMANN (talk | contribs) No edit summary |
||
Line 25: | Line 25: | ||
cOut.updateDataArray = function() { | cOut.updateDataArray = function() { | ||
var i; | var i; | ||
var s = circ.getRadius()/Math.cos(Math.PI | var s = circ.getRadius()/Math.cos(Math.PI/n.Value()); | ||
this.dataX = [p0.X()+s]; | this.dataX = [p0.X()+s]; | ||
this.dataY = [p0.Y()]; | this.dataY = [p0.Y()]; | ||
Line 35: | Line 35: | ||
} | } | ||
} | } | ||
brd.update(); | brd.update(); |