title: How to move point along circle?
body: <p>I want to move a sprite in a circular motion by using a circle radius and movingangle.</p>
  
  <p>I know for instance that the sprite is moving in a circle with the radius 10 and It's current position is (387,38) and angle is 28 degrees. Now I wann't move it say, 100px along the circle  perimeter.</p>
  
  <p><img src="https://i.stack.imgur.com/Pe1ss.png" alt="Pic describing the scenario"></p>
  
  <pre><code>p1 = x&amp;y coordinate, known (387,38) in example with movingangle 28 degrees
  r = radius, known (10 in example)
  l = distance to move along bend, known (100px in example)
  p2 = new point, what is this x and y value?
  </code></pre>
  
  <p>I have a solution that works but I dont quite like it. It kind of don't make sense to me and it requires more calculations than I think is required. It works by first calculating the center point using p1 and then doing the same thing backwards so to speak to get p2 (using cosinus and sinus). There should be a quicker way I believe but I cant find anyone doing exactly this.</p>
  
  <p>The reason i tagged cocos2d is because thats what I'm working with and sometimes game frameworks provide functions to help with the trigonometry.</p>