title: Calculate curvature for 3 Points (x,y)
body: <p>I have a two dimensional euclidean space. Three points are given.</p>
  
  <p>For example (p2 is the middle point):</p>
  
  <pre><code>Point2D p1 = new Point2D.Double(177, 289);
  Point2D p2 = new Point2D.Double(178, 290);
  Point2D p3 = new Point2D.Double(178, 291);
  </code></pre>
  
  <p>Now i want to calculate the <a href="https://en.wikipedia.org/wiki/Menger_curvature" rel="noreferrer">curvature</a> for these three points.</p>
  
  <pre><code>double curvature = calculateCurvature(p1, p2, p3);
  </code></pre>
  
  <p>How to do this?
  Ist there a existing method (no java external libraries)?</p>
  
  <ul>
  <li>Curvature: <a href="https://en.wikipedia.org/wiki/Curvature" rel="noreferrer">https://en.wikipedia.org/wiki/Curvature</a> </li>
  <li>Menger Curvature:
  <a href="https://en.wikipedia.org/wiki/Menger_curvature" rel="noreferrer">https://en.wikipedia.org/wiki/Menger_curvature</a></li>
  </ul>