[osg-users] handling trig exceptions due to floating point inaccuracies

2009-05-18 Thread Cory Riddell
I've been trying to use the SphericalManipulator class that was posted to the submission list a few weeks ago and it is throwing exceptions when it is trying to calculate acos(1.002) in the last line of this function: void SphericalManipulator::setByMatrix(const osg::Matrixd matrix) {

Re: [osg-users] handling trig exceptions due to floating point inaccuracies

2009-05-18 Thread Cory Riddell
Ack- acos(-1) is not pi. But the rest of my question still stands. Cory Riddell wrote: I've been trying to use the SphericalManipulator class that was posted to the submission list a few weeks ago and it is throwing exceptions when it is trying to calculate acos(1.002) in the last line