Hi Jimmy,

Clamp your input values to the range -1..1 before calling arccos.

Probably just some small numerical error creeping in and pushing it slightly 
outside that range.
--
Brent

From: [email protected] 
[mailto:[email protected]] On Behalf Of jimmy gass
Sent: 21 March 2013 7:51 PM
To: [email protected]
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 divide by zero? Maybe I can 
do a check of the values before I'm operating on them.

Thanks

jimmy

<<attachment: winmail.dat>>

Reply via email to