title: How can I calculate a transformation matrix that maps a curve to another
body: <p>As shown in the picture below, I have two curves: curveB (extracted from an Image) and curveA (reference curve). each curve is represented as an array of 2D points. </p>
  
  <p><a href="https://i.stack.imgur.com/3FelB.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/3FelB.png" alt="enter image description here"></a></p>
  
  <p>I am trying to find out:</p>
  
  <ol>
  <li>is curveB part of curveA? (curveB may be transformed under some
  affine transformation)</li>
  <li>which transformation matrix maps curveB to
  the appropriate position on curveA?</li>
  <li>is there a c# library that do 1 &amp; 2 for me?!</li>
  </ol>
  
  <p>any help will be appreciated</p>