Enable Javascript in your browser and then refresh this page, for a much enhanced experience.
Shoelace solution in Creative category for Area of a Convex Polygon by veky
def checkio(d):
a,(u,v)=0,d[-1]
for x,y in d: a,u,v=a+x*v-y*u,x,y
return abs(a)/2
May 24, 2013
Comments: