"Bald Eagle" <cre### [at] netscapenet> wrote:
> That looks good when I run your code - when I let it rip on a big array of
> triangular coordinates, I get a "Domain error in atan2()"
>
> I'll study your code and try to track down the cause. Probably
> degenerate/coincident points or something.
Yes, it looks like that will happen when both numbers in the atan2 function are
0. If only one is 0, it is fine. A simple check on the StrutLength and bypass
when it is 0 should suffice.
-tgq
Post a reply to this message
|