title: 2D vector math with direction and velocity
body: <p>Heyo!</p>
  
  <p>I'm starting to create games on iOS and I'm trying a Breakout-clone for start. As practice I wanted a ball to bounce around in a rectangle so I get my head around simple collision, direction and velocity.</p>
  
  <p>My ball got the following:</p>
  
  <pre><code>Point position; // x, y
  float direction;
  float velocity;
  </code></pre>
  
  <p>In my "update" function, I want to move the ball in the current direction. What is the next position considering the velocity and direction?</p>
  
  <p>Are there any helpers in some built-in frameworks in iOS?</p>
  
  <p>I would really like to learn more about 2D-math so if someone got some reasources I would really appreciate if you send me a link. </p>