diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-07 19:23:32 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2017-05-10 11:19:22 +0200 |
commit | ad496a028cee3e119177a3a7d9e9f4f0edb3f96c (patch) | |
tree | dc24d25451cf3ae027584dd375eb3070088cb48e | |
parent | 1d3fa41e12c9f17f184084f734fe78a4f1468b60 (diff) |
spline: add comment
-rw-r--r-- | spline/spline.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/spline/spline.cpp b/spline/spline.cpp index 3c1c3eba..7ca8147c 100644 --- a/spline/spline.cpp +++ b/spline/spline.cpp @@ -447,6 +447,9 @@ double spline::bucket_size_coefficient(const QList<QPointF>& points) const if (unlikely(max_x < eps)) return 0; + // needed to fill the buckets up to the last control point. + // space between that point and max_x doesn't matter. + const int sz = element_count(points, max_x); const double last_x = sz ? points[sz - 1].x() : max_x; |