Refactoring: prefix inc/dec operators for iterators

This commit is contained in:
ntfshard 2015-07-26 23:36:26 +03:00 committed by Alessandro Ranellucci
parent 06913cc8b8
commit f2c4a66e45
5 changed files with 30 additions and 30 deletions

View file

@ -119,7 +119,7 @@ Polyline::equally_spaced_points(double distance) const
double take = segment_length - (len - distance); // how much we take of this segment
Line segment(*(it-1), *it);
points.push_back(segment.point_at(take));
it--;
--it;
len = -take;
}
return points;