title: C++ Move 2D Point Along Angle
body: <p>So I am writing a game in C++, currently I am working on a 'Compass', but I am having some problems with the vector math..</p>
  
  <p>Here is a little image I created to possibly help explain my question better
  <a href="https://i.stack.imgur.com/DwpZF.png" rel="noreferrer"><img src="https://i.stack.imgur.com/DwpZF.png" alt="enter image description here"></a></p>
  
  <p>Ok, so as you can see the 2D position of <code>A</code> begins at <code>(4, 4)</code>, but then I want to move <code>A</code> along the 45 degree angle until the 2D position reaches <code>(16, 16)</code>, so basically there is a 12 distance between where <code>A</code> starts and where it ends. And my qustion is how would I calculate this?</p>