The open source OpenXR runtime
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bugfix in solving quadratic equation for FoV calculation

authored by

timongentzsch and committed by
Moses Turner
ba353e27 e5e8451a

+1 -1
+1 -1
src/xrt/auxiliary/math/m_optics.c
··· 65 65 66 66 /* Parts of the quadratic formula solution */ 67 67 const double b = u + 1.0; 68 - const double root = sqrt(b + 4 * u * v * v); 68 + const double root = sqrt(b * b + 4 * u * v * v); 69 69 const double two_a = 2 * v; 70 70 71 71 /* The two possible solutions. */