Constrain Within Circle?

Malte Brill revolution at derbrill.de
Sun Nov 6 03:36:15 EST 2005


Hi Joel,

Maybe it was my limited number of loops that didn´t produce a 
meaningful result. :-) Anyway, your version is so much more readable, 
and in single calls they are head to head anyway, that I will likely 
change the function in the next version of AE. Thanks very much for the 
suggestion.

All the best,

Malte


> Hi Malte,
>
> My test with the 2 different versions of the function shows a 25%
> faster with the one using atan2 (test with 1000 and 10000 loops, 200
> runs)... on a G4/1.67 GHz/RAM 2 Go/Mac OS X 10.4.2. Probably you
> loose time with testing x1=>x2... But you are right one loop was less
> than one millisecs and may not impair the overall performance.



More information about the use-livecode mailing list