title: Given 3 points, how to construct an arc that passes through them?
body: <p>Let's say I have 3 consecutive points (<code>P1</code>,<code>P2</code>, <code>P3</code>), how to construct an Arc that passes through all 3 points?</p>
  
  <p>The arc must have the following 3 properties:</p>
  
  <ol>
  <li>Start Radian</li>
  <li>End Radian</li>
  <li>Center Point</li>
  </ol>
  
  <p>The arc is drawn from <code>Start Radian</code> to <code>End Radian</code> in counter-clockwise manner.</p>
  
  <p>I've tried with the solution <a href="https://stackoverflow.com/questions/2898089/c-drawing-arc-with-3-points">here</a>, but it doesn't work, simply because it assumes that <code>P1</code> must correspond to <code>Start Radian</code> and <code>P3</code> must correspond to <code>end radian</code>. But the reality is that this is not always valid.  </p>