-
Ewoud Smeur authored
If the quaternion is slightly off around +-90 degrees pitch, the result might be a NaN if the asin is computed. Added bounds to make sure this can never happen. The argument should not be outside [-1,1] anyway.
If the quaternion is slightly off around +-90 degrees pitch, the result might be a NaN if the asin is computed. Added bounds to make sure this can never happen. The argument should not be outside [-1,1] anyway.