title: C++ Creating function to draw the hypotenuse - Trigonometry
body: <p>I understand how to calculate the hypotenuse a^2 + b^2 = c^2, 
  sqrt(c) = hypotenuse. And I am aware there are some relevant answers already on stackoverflow, but they are immersed in terminology I don't understand(yet) as a beginner programmer.</p>
  
  <p>As this is more programming orientated I haven't been able to find anything relevant on math websites either. </p>
  
  <p>If you have a right angle triangle</p>
  
  <pre><code>             * |
    7.07   *     | 5
        *        |
     *           |
  *_  _  _  _  _ |
         5 
  </code></pre>
  
  <p>How do I increment x and y (x,y) in cartesian format, so that I can draw
  in pixels SetPixel(myDC, x, y, COLOUR);</p>
  
  <p>I somehow understand the concept of sin, cos and tan and their inverses, but can not for the life of me figure out how to increment (x,y) together in relation to the size of the adjacent and opposite lengths.</p>