| 1066 | } |
| 1067 | }; |
| 1068 | int check(HP a, HP b, HP c) { |
| 1069 | return cross(a.b - a.a, b.intersection(c) - a.a) > -eps; //-eps to include polygons of zero area (straight lines, points) |
| 1070 | } |
| 1071 | // consider half-plane of counter-clockwise side of each line |
| 1072 | // if lines are not bounded add infinity rectangle |
| 1073 | // returns a convex polygon, a point can occur multiple times though |
no test coverage detected