On Jan 27 2014 9:18 AM, andy pugh wrote: > On 27 January 2014 15:42, Dewey Garrett <[email protected]> wrote: > >> CHKS((fabs(cos(A_ang)) < TOLERANCE_EQUAL), >> NCE_TOOL_RADIUS_NOT_LESS_THAN_ARC_RADIUS_WITH_COMP); >> with TOLERANCE_EQUAL == .0001 in interp_internal.hh > > My initial thought is that it isn't necessary to use a tolerance for > a > "less than" condition. In this case it seems to be giving a > false-positive. > The actual test here seems to be based on the absolute value of the > cosine. Perhaps it would be simpler to compare the radii?
Depending on the actual calculation, it is better to compare with the radii squared to save a sqrt, but if you already have the radii then that is good... ------------------------------------------------------------------------------ CenturyLink Cloud: The Leader in Enterprise Cloud Services. Learn Why More Businesses Are Choosing CenturyLink Cloud For Critical Workloads, Development Environments & Everything In Between. Get a Quote or Start a Free Trial Today. http://pubads.g.doubleclick.net/gampad/clk?id=119420431&iu=/4140/ostg.clktrk _______________________________________________ Emc-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/emc-developers
