Area of Irregular Polygon
Roger Guay
irog at mac.com
Sat Nov 7 23:10:25 EST 2015
Thanks, Geoff . . . I understand. Fortunately for me in my current quest, it’s not a problem.
> On Nov 7, 2015, at 7:47 PM, Geoff Canyon <gcanyon at gmail.com> wrote:
>
> 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
>>
> _______________________________________________
> 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