I want to apply the Shoelace formula to a list of polygon vertices, whose order is known, but they are stored in memory in the wrong order:
Point Nr. x y 1 1 0 4 1 1 2 0 0 3 0 1
Since the Shoelace formula contains products of coordinates (
x1*y2 etc.) of successive vertices, I would have to sort them first. Is there a way to avoid this?