Math question: How to compute the area of polygons

Dar Scott dsc at swcp.com
Fri Mar 21 13:44:01 EST 2003


On Friday, March 21, 2003, at 10:23 AM, Dar Scott wrote:

> However, if Tomas Nally's method was optimized, it would take only one 
> multiply, one subtract and two adds per edge.

And this applies to Jim's, too.

After pondering on this, I think this might be reduced to three 
arithmetic operations per corner, but it involves 3 adjacent points 
instead of two.  Arithmetic is relatively fast in Transcript, so 
optimization might be found in other ways.

Dar Scott




More information about the use-livecode mailing list