Jump to content

Shoelace formula for polygonal area: Difference between revisions

m
→‎{{header|Python}}: Minor rearrangement for symmetry, legibility
m (→‎{{header|Python}}: Minor rearrangement for symmetry, legibility)
Line 927:
(x, y), (dx, dy) = tpl
l, r = a
return (l + x * dy, r + dxy * ydx)
(nl, nr) = reduce(
go,
9,659

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.