summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/get_covering_stops.hpp
blob: 157aefe7bc7d0a84c0816e1b25ecf1f53a97d904 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#pragma once

#include <mbgl/style/expression/expression.hpp>
#include <mbgl/util/range.hpp>
#include <memory>
#include <map>

namespace mbgl {
namespace style {
namespace expression {

// Return the smallest range of stops that covers the interval [lower, upper]
Range<float> getCoveringStops(const std::map<double, std::unique_ptr<Expression>>& stops,
                              const double lower, const double upper);

} // namespace expression
} // namespace style
} // namespace mbgl