Use Ogre's asin/acos functions which will protect against NaNs