title: Evenly space circles along sin curve
body: <p>I am trying to position sprites (visually circlular with, say radius 50) evenly along a sin curve.</p>
  
  <p>Currently, the function I am using for x and y are:</p>
  
  <pre><code>for(int i=0; i&lt;number_of_sprites; i++){
      x = sprite_index*60
      y = sin(sprite_index)*60
  
      sprite.position = CGPointMake(x, y)
  }
  </code></pre>
  
  <p>Even though the sprites are all evenly spaced along the x axis, you are not all equidistant from each other.</p>
  
  <p>This is somewhat pseudocode - I'm simply looking for the mathematical function to do this.</p>
  
  <p>How can I solve this problem?</p>