how to check if black point (p0,p1) lies between two parallel lines - line 1 (x0,y0) line 2(x1,y1) when lines are horizontal and vertical
Asked
Active
Viewed 48 times
0
-
2what have you tried? You can give a self contained example and show where you have a problem. – sehan2 Oct 26 '21 at 15:55
-
You should edit your question to include a [mcve]. If you create a polygon from your four points that form the lines you can determine whether the point is inside the polygon. See [this question](https://stackoverflow.com/questions/36399381/whats-the-fastest-way-of-checking-if-a-point-is-inside-a-polygon-in-python) for more details. – Alex Oct 26 '21 at 15:59
-
3What are your plots supposed to represent? The two images are identical and neither contain horizontal nor vertical lines. – Woodford Oct 26 '21 at 16:10