# Difference between revisions of "Circle with ticks"

From JSXGraph Wiki

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

Line 19: | Line 19: | ||

for (i = 0; i < steps; i++) { | for (i = 0; i < steps; i++) { | ||

this.dataX.push( cx + 0.95 * r * Math.cos(i * alpha) ); | this.dataX.push( cx + 0.95 * r * Math.cos(i * alpha) ); | ||

− | this.dataY.push( | + | this.dataY.push( cy + 0.95 * r * Math.sin(i * alpha) ); |

this.dataX.push( cx + 1.05 * r * Math.cos(i * alpha) ); | this.dataX.push( cx + 1.05 * r * Math.cos(i * alpha) ); | ||

− | this.dataY.push( | + | this.dataY.push( cy + 1.05 * r * Math.sin(i * alpha) ); |

this.dataX.push( NaN ); | this.dataX.push( NaN ); | ||

this.dataY.push( NaN ); | this.dataY.push( NaN ); |