summaryrefslogtreecommitdiff
path: root/boost/geometry/strategies/cartesian/buffer_point_circle.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'boost/geometry/strategies/cartesian/buffer_point_circle.hpp')
-rw-r--r--boost/geometry/strategies/cartesian/buffer_point_circle.hpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/boost/geometry/strategies/cartesian/buffer_point_circle.hpp b/boost/geometry/strategies/cartesian/buffer_point_circle.hpp
index c341e3ca3b..b6fc0707bc 100644
--- a/boost/geometry/strategies/cartesian/buffer_point_circle.hpp
+++ b/boost/geometry/strategies/cartesian/buffer_point_circle.hpp
@@ -57,10 +57,9 @@ class point_circle
{
public :
//! \brief Constructs the strategy
- //! \param count number of points for the created circle (if count
- //! is smaller than 3, count is internally set to 3)
- explicit point_circle(std::size_t count = 90)
- : m_count((count < 3u) ? 3u : count)
+ //! \param count Number of points (minimum 3) for the created circle
+ explicit point_circle(std::size_t count = default_points_per_circle)
+ : m_count(get_point_count_for_circle(count))
{}
#ifndef DOXYGEN_SHOULD_SKIP_THIS