Given convex polygon with known coordinates of vertices. Every pair of vertices is connected by a line segment. Is there efficient algorithm to find intersections of resulting line segments?
For example, with regular dodecagon all line segments form this picture:
How to find coordinates of all intersections on this picture efficiently?
The number of interior intersections is upperbounded by n choose 4 where n is the number of vertices. Unfortunately for convex polygons in general position, all of them will be distinct, so an efficient algorithm would be to enumerate 4-combinations (e.g., using this method) and compute the one intersection that arises from each combination (if you number the vertices in clockwise order, then the intersection of the segment from the lowest to the second highest with the segment from the second lowest to the highest).
If you're interested in regular polygons specifically it may be possible to do better.