Re: arcCos nan

2013-03-21 Thread Amaan Akram
Clamp input to be in -1 to 1 range? On 21 Mar 2013 20:50, "jimmy gass" wrote: > I'm having issues with arccos returning nan for some values. > > Is there a way to filter out the nan and just return 0? It can break > renders and simulations. > > What would cause arccos to return nan, is it like di

Re: arcCos nan

2013-03-21 Thread jimmy gass
From: softimage-boun...@listproc.autodesk.com [mailto: > softimage-boun...@listproc.autodesk.com] On Behalf Of jimmy gass > Sent: Thursday, March 21, 2013 03:51 PM > To: softimage@listproc.autodesk.com > Subject: arcCos nan > > I'm having issues with arccos returning nan for some values.

RE: arcCos nan

2013-03-21 Thread Grahame Fuller
: Thursday, March 21, 2013 03:51 PM To: softimage@listproc.autodesk.com Subject: arcCos nan I'm having issues with arccos returning nan for some values. Is there a way to filter out the nan and just return 0? It can break renders and simulations. What would cause arccos to return nan, is it like d

RE: arcCos nan

2013-03-21 Thread Brent McPherson
jimmy gass Sent: 21 March 2013 7:51 PM To: softimage@listproc.autodesk.com Subject: arcCos nan I'm having issues with arccos returning nan for some values. Is there a way to filter out the nan and just return 0? It can break renders and simulations. What would cause arccos to return nan, is it

arcCos nan

2013-03-21 Thread jimmy gass
I'm having issues with arccos returning nan for some values. Is there a way to filter out the nan and just return 0? It can break renders and simulations. What would cause arccos to return nan, is it like divide by zero? Maybe I can do a check of the values before I'm operating on them. Thanks