diff --git a/geom/ellipse.hpp b/geom/ellipse.hpp index 8ed89cc7..5437f802 100644 --- a/geom/ellipse.hpp +++ b/geom/ellipse.hpp @@ -14,8 +14,9 @@ #include "../point.hpp" #include "../vector.hpp" +#include + #include -#include #include @@ -120,9 +121,9 @@ namespace cruft::geom { const auto c2 = c * c; // generate a direction vector from a normally distributed random variable - auto const x = std::normal_distribution (0, a2) (generator); - auto const y = std::normal_distribution (0, b2) (generator); - auto const z = std::normal_distribution (0, c2) (generator); + auto const x = cruft::rand::distribution::normal (0, a2) (generator); + auto const y = cruft::rand::distribution::normal (0, b2) (generator); + auto const z = cruft::rand::distribution::normal (0, c2) (generator); // find the distance to the surface along the direction vector auto const d = std::sqrt (x * x / a2 + y * y / b2 + z * z / c2);