Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
First solution in Clear category for Area of a Convex Polygon by htamas
def checkio(data):
area = 0
data = iter(data)
ax, ay = next(data)
bx, by = next(data)
for cx, cy in data:
area += (ax-cx)*(by-ay) - (ax-bx)*(cy-ay)
bx, by = cx, cy
return abs(area) / 2
Oct. 22, 2013
Comments: