total = 0.0
N = len(poly)
for i in range(N):
v1 = poly[i]
v2 = poly[(i+1) % N]
total += v1*v2 - v1*v2
| Contact Us
© 2023 ActiveState Software Inc. All rights reserved.
ActiveState®, Komodo®, ActiveState Perl Dev Kit®,
ActiveState Tcl Dev Kit®, ActivePerl®, ActivePython®,
and ActiveTcl® are registered trademarks of ActiveState.
All other marks are property of their respective owners.