From 0464fce7ac46386ea8c45b87cf6a4400df210767 Mon Sep 17 00:00:00 2001 From: Andreas Fabri Date: Mon, 28 Apr 2025 07:39:39 +0100 Subject: [PATCH] Generator: Document default for parameter radius --- Generator/doc/Generator/CGAL/point_generators_2.h | 4 ++-- Generator/doc/Generator/CGAL/point_generators_3.h | 4 ++-- Generator/doc/Generator/CGAL/point_generators_d.h | 4 ++-- Generator/include/CGAL/point_generators_3.h | 2 +- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/Generator/doc/Generator/CGAL/point_generators_2.h b/Generator/doc/Generator/CGAL/point_generators_2.h index b273f932314..5b6f71c135a 100644 --- a/Generator/doc/Generator/CGAL/point_generators_2.h +++ b/Generator/doc/Generator/CGAL/point_generators_2.h @@ -192,7 +192,7 @@ i.e.\ \f$ |*g| < r\f$. Two random numbers are needed from `rnd` for each point. */ -Random_points_in_disc_2( double r, Random& rnd = +Random_points_in_disc_2( double r = 1.0, Random& rnd = get_default_random()); /// @} @@ -527,7 +527,7 @@ i.e.\ \f$ |*g| == r\f$. A single random number is needed from `rnd` for each point. */ -Random_points_on_circle_2( double r, Random& rnd = +Random_points_on_circle_2( double r=1.0, Random& rnd = get_default_random()); /// @} diff --git a/Generator/doc/Generator/CGAL/point_generators_3.h b/Generator/doc/Generator/CGAL/point_generators_3.h index 1e2853fa5cf..8167d2d506c 100644 --- a/Generator/doc/Generator/CGAL/point_generators_3.h +++ b/Generator/doc/Generator/CGAL/point_generators_3.h @@ -153,7 +153,7 @@ i.e.\ \f$ |*g| < r\f$ . Three random numbers are needed from `rnd` for each point. */ -Random_points_in_sphere_3( double r, Random& rnd = +Random_points_in_sphere_3( double r = 1.0, Random& rnd = get_default_random()); /// @} @@ -719,7 +719,7 @@ i.e.\ \f$ |*g| == r\f$ . Two random numbers are needed from `rnd` for each point. */ -Random_points_on_sphere_3( double r, Random& rnd = +Random_points_on_sphere_3( double r=1.0, Random& rnd = get_default_random()); /// @} diff --git a/Generator/doc/Generator/CGAL/point_generators_d.h b/Generator/doc/Generator/CGAL/point_generators_d.h index 7f22705dee7..f26d9a7034c 100644 --- a/Generator/doc/Generator/CGAL/point_generators_d.h +++ b/Generator/doc/Generator/CGAL/point_generators_d.h @@ -91,7 +91,7 @@ i.e.\ \f$ |*g| < r\f$ . \f$ 2\cdot dim+1\f$ random numbers are needed from `rnd` for each point. */ -Random_points_in_ball_d(int dim, double r); +Random_points_in_ball_d(int dim, double r=1.0, Random& rnd = get_default_random()); /// @} @@ -227,7 +227,7 @@ i.e.\ \f$ |*g| == r\f$ . \f$ 2\cdot dim\f$ random numbers are needed from `rnd` for each point. */ -Random_points_on_sphere_d(int dim, double r, Random& rnd = +Random_points_on_sphere_d(int dim, double r=1.0, Random& rnd = get_default_random()); /// @} diff --git a/Generator/include/CGAL/point_generators_3.h b/Generator/include/CGAL/point_generators_3.h index 8578a3029b0..bee67709be1 100644 --- a/Generator/include/CGAL/point_generators_3.h +++ b/Generator/include/CGAL/point_generators_3.h @@ -38,7 +38,7 @@ public: typedef Random_points_in_sphere_3 This; Random_points_in_sphere_3( double r = 1, Random& rnd = CGAL::get_default_random()) // g is an input iterator creating points of type `P' uniformly - // distributed in the open sphere with radius r, i.e. |`*g'| < r . + // distributed in the open sphere with radius r, i.e., |`*g'| < r . // Three random numbers are needed from `rnd' for each point : Random_generator_base

( r, rnd) { generate_point(); } This& operator++() {