For example, I have the following points forming 4-rod.

x1= 81.0582
Y1= 348.106
x2= 127.111
Y2= 367.577
x3= 120.
Y3= 256.
x4= 166.053
Y4= 275.471

under the condition is not given, which of these points is the upper vertex or lower. It is easy to calculate and I did it. But the fact is that the quadrangle lies at an angle and it complicates the task. Tell me which algorithm to use to find out if the point (any) is belonging to the quadrangle or not?

Honestly, solutions for this link are far from ideal.

Stanislav Volodarskiy2021-05-04 23:36:07