Co-authored-by: Bart Louwers <bart@emeel.net> Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Bart Louwers <bart.louwers@gmail.com>
20 lines
521 B
C++
20 lines
521 B
C++
#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) noexcept;
|
|
|
|
} // namespace expression
|
|
} // namespace style
|
|
} // namespace mbgl
|