p1 and p2 are points given by their x and y coordinates. The line must have this left to right direction.
I have no idea how I can do this, I tried using something like
\draw [dashed] plot [smooth, tension=2] coordinates { (-5,0) (-4, 1) (-3,3)};
But it doesn't work for my purposes.