summaryrefslogtreecommitdiff
path: root/include/llmr/style
diff options
context:
space:
mode:
authorKonstantin Käfer <mail@kkaefer.com>2014-07-10 15:26:35 -0700
committerKonstantin Käfer <mail@kkaefer.com>2014-07-10 15:26:35 -0700
commitf519625ed2ab5a88c86dfa6d833059023e2996b0 (patch)
tree32ae226e8b6d75bea1b4f82a0a8664ddf561bc71 /include/llmr/style
parentfd0b1aeffee8b7586abc13b42a68c1978f87ccba (diff)
downloadqtlocation-mapboxgl-f519625ed2ab5a88c86dfa6d833059023e2996b0.tar.gz
allow specifying a base parameter for exponential functions
refs mapbox/mapbox-gl-style-spec#4
Diffstat (limited to 'include/llmr/style')
-rw-r--r--include/llmr/style/function_properties.hpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/include/llmr/style/function_properties.hpp b/include/llmr/style/function_properties.hpp
index 75714d1197..e72ced0b02 100644
--- a/include/llmr/style/function_properties.hpp
+++ b/include/llmr/style/function_properties.hpp
@@ -29,14 +29,14 @@ private:
template <typename T>
struct ExponentialFunction {
- inline ExponentialFunction(const T &value, float z_base, float slope, const T &min,
+ inline ExponentialFunction(const T &value, float z_base, float exp_base, float slope, const T &min,
const T &max)
- : value(value), min(min), max(max), z_base(z_base), slope(slope) {}
+ : value(value), min(min), max(max), z_base(z_base), exp_base(exp_base), slope(slope) {}
T evaluate(float z) const;
private:
const T value, min, max;
- const float z_base, slope;
+ const float z_base, exp_base, slope;
};
template <typename T>