summaryrefslogtreecommitdiff
path: root/include/mbgl/style/expression/get_covering_stops.hpp
blob: c9de9d196539893e48c0986595ce1d95fc244a98 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#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, double lower, double upper);

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