On Sat, Jan 10, 2009 at 6:49 PM, John Denker <j...@av8n.com> wrote: > On 01/10/2009 10:22 AM, Csaba Halász wrote: > >>> Clamping it is guaranteed 100% safe and effective. >> >> Something like the attached patch? Not sure what to do about the x == 0 case. > > How about this version? It assumes dist is not less than zero, > but is otherwise pretty defensive.
That approach could also work. -- Csaba/Jester ------------------------------------------------------------------------------ Check out the new SourceForge.net Marketplace. It is the best place to buy or sell services for just about anything Open Source. http://p.sf.net/sfu/Xq1LFB _______________________________________________ Flightgear-devel mailing list Flightgear-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/flightgear-devel