Details
-
Task
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
None
-
None
-
None
Description
Calculate trapezoid area for a given series of data.
suppose we have:
x0, x1, x2, x3
y0, y1, y2, y3
the area would be
(x1-x0) * (y1+y0)/2 + (x2-x1) * (y2+y1)/2 + (x3-x2) * (y3+y2)/2