We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3ad93a7 commit 747c7d1Copy full SHA for 747c7d1
src/fields2cover/swath_generator/swath_generator_base.cpp
@@ -192,7 +192,7 @@ std::vector<double> SwathGeneratorBase::computeBestAngles(
192
193
std::vector<double> SwathGeneratorBase::getSwathsDistribution(
194
SwathOverlapType type, double field_width, double cov_width) {
195
- size_t n = static_cast<size_t>(std::ceil(fabs(field_width / cov_width)));
+ size_t n = static_cast<size_t>(fabs(field_width / cov_width));
196
if (type == SwathOverlapType::MIDDLE_OVERLAP ||
197
type == SwathOverlapType::EVENLY_DISTRIBUTED_OVERLAP) {
198
++n;
0 commit comments