# Difference between revisions of "Circle approximation"

From JSXGraph Wiki

Jump to navigationJump to searchA WASSERMANN (talk | contribs) |
A WASSERMANN (talk | contribs) |
||

Line 26: | Line 26: | ||

var i; | var i; | ||

var s = circ.getRadius()/Math.cos(Math.PI*2.0/n.Value); | var s = circ.getRadius()/Math.cos(Math.PI*2.0/n.Value); | ||

+ | alert(s); | ||

this.dataX = [p0.X()+s]; | this.dataX = [p0.X()+s]; | ||

this.dataY = [p0.Y()]; | this.dataY = [p0.Y()]; |