title: Draw arc between two lines. I need to calculate points
body: <p><a href="https://i.stack.imgur.com/AHbmx.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/AHbmx.png" alt="Lines and arc"></a></p>
  
  <p>I can't find a way to drawing ARC between two lines. My constraint is : I have to calculate this Arc stroke points. Because i am using InkCanvas and i have to draw this arc point by point, i can't put any object to screen or canvas. So I know i can draw any arc with PATH object and use ArcSegment. With this method yes i can draw arc but it isn't stroke point on the Canvas. For this reason i cannot delete or save it.
  Anyway i need calculate this arch point by point.</p>
  
  <p>I have code for drawing circle on canvas like this :</p>
  
  <pre><code>Stroke GetCircleStroke(int centerX, int centerY, int radiusX, int radiusY,double angletoDraw=2.0)
          {
              StylusPointCollection strokePoints = new StylusPointCollection();
  
              int numTotalSteps = 180;
  
              for (int i = 0; i &lt;= numTotalSteps; i++)
              {
                  double angle = angletoDraw * Math.PI * (double)i / (double)numTotalSteps;
                  StylusPoint sp = new StylusPoint();
                  //compute x and y points
                  sp.X = centerX + Math.Cos(angle) * radiusX;
                  sp.Y = centerY - Math.Sin(angle) * radiusY;
  
                  //add to the collection
                  strokePoints.Add(sp);
              }
  
              Stroke newStroke = new Stroke(strokePoints);
              return newStroke;
  
          }
  </code></pre>
  
  <p>I can draw circle easly, but i couldn't find a way to draw an arc :(</p>
  
  <p>We know center point X,Y and we know Line1 and Line2 coordinates. I just don't know what is that arc..</p>
  
  <p>Could you please help me for calculate arc points like this way ?</p>