diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-07-10 15:26:35 -0700 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-07-10 15:26:35 -0700 |
commit | f519625ed2ab5a88c86dfa6d833059023e2996b0 (patch) | |
tree | 32ae226e8b6d75bea1b4f82a0a8664ddf561bc71 /include/llmr/style | |
parent | fd0b1aeffee8b7586abc13b42a68c1978f87ccba (diff) | |
download | qtlocation-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.hpp | 6 |
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> |