Area of Irregular Polygon

Geoff Canyon gcanyon at gmail.com
Sat Nov 7 22:47:41 EST 2015


Important to note that this method of calculating the area of a polygon
will fail if the polygon crosses itself. As long as the polygon is simple,
it works.

On Sat, Nov 7, 2015 at 8:30 PM, Roger Guay <irog at mac.com> wrote:

> This is great . . . Thanks, guys!!!
>
>
> > On Nov 7, 2015, at 4:56 PM, Geoff Canyon <gcanyon at gmail.com> wrote:
> >
> > put line 1 of pPts into oldL
> >      repeat for each line L in line 2 to -1 of pPts
> >         add (item 1 of L - item 1 of oldL) * ( item 2 of oldL + item 2 of
> > L) / 2 to tArea
> >         put L into oldL
> >      end repeat
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>



More information about the use-livecode mailing list