Fix random::uniform_ball result type

This commit is contained in:
Nikita Lisitsa 2020-12-10 10:38:42 +03:00
parent 0a0398807f
commit 3ce7f05adf

View file

@ -34,7 +34,7 @@ namespace psemek::random
template <typename T, std::size_t N> template <typename T, std::size_t N>
struct uniform_ball_point_distribution struct uniform_ball_point_distribution
{ {
using result_type = geom::vector<T, N>; using result_type = geom::point<T, N>;
uniform_ball_point_distribution(result_type origin, T r = T{1}) uniform_ball_point_distribution(result_type origin, T r = T{1})
: origin_{origin} : origin_{origin}