title: How can I get a segment of a Path between two points using paper.js?
body: <p>I have a <em>Path</em> that intersects with another <em>Path</em>. Paper.js can give me points of intersection of these paths. Next, I need to get a segment of one path from one point of intersection to another. Example on the picture:</p>
  
  <p><a href="https://i.stack.imgur.com/N3BFz.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/N3BFz.png" alt="enter image description here"></a></p>
  
  <p>How can I get it using paper.js?</p>