I have a polygon defined in a Python list with (x, y) coordinates.
# for example
polygon = [(0, 0), (2, 0), (2, 2), (1, 1), (0, 2)]
I would like to get the signed area of this polygon. I know I could write my own algorithm to do it, but I'm searching for an existing method which does the same thing.
I've already read the following post : Calculate area of polygon given (x,y) coordinates but it only talks about getting the area, which differs from the signed area.