Open Ra1nWarden opened 9 years ago
Proposal: Find intersection point between the diagonal and any side of the polygon. These points divide the line into segments. For each segment, find the middle point and determine whether it is inside the polygon.
DP part is done but need special condition for triangles that cannot be formed by joining points in the polygon. The polygon may be concave so need some computational geometry here.