Clamp input to be in -1 to 1 range?
On 21 Mar 2013 20:50, "jimmy gass" <[email protected]> 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 divide by zero? Maybe I
> can do a check of the values before I'm operating on them.
>
> Thanks
>
> jimmy
>

Reply via email to