mirror of
https://gitlab.freedesktop.org/monado/monado.git
synced 2025-01-01 12:46:12 +00:00
Bugfix in solving quadratic equation for FoV calculation
This commit is contained in:
parent
e5e8451a81
commit
ba353e276d
|
@ -65,7 +65,7 @@ math_solve_triangle(
|
|||
|
||||
/* Parts of the quadratic formula solution */
|
||||
const double b = u + 1.0;
|
||||
const double root = sqrt(b + 4 * u * v * v);
|
||||
const double root = sqrt(b * b + 4 * u * v * v);
|
||||
const double two_a = 2 * v;
|
||||
|
||||
/* The two possible solutions. */
|
||||
|
|
Loading…
Reference in a new issue