summaryrefslogtreecommitdiff
path: root/src/powermap.h
diff options
context:
space:
mode:
authorAndré Nusser <andre.nusser@googlemail.com>2020-04-25 14:17:18 +0200
committerAndré Nusser <andre.nusser@googlemail.com>2020-04-25 14:17:35 +0200
commit08489fe7085be47298e37adbb7787033a17b5905 (patch)
treeeddae61eed88cd5043fbe05c4af86d235aa3b7d7 /src/powermap.h
parent0ce90a85fa6d657ed423171bc94320a613b53e1e (diff)
Enforce monotonicity in the powermap by the set functions.
Diffstat (limited to 'src/powermap.h')
-rw-r--r--src/powermap.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/powermap.h b/src/powermap.h
index aa4cbfc..29a3c81 100644
--- a/src/powermap.h
+++ b/src/powermap.h
@@ -67,4 +67,7 @@ private:
bool spline_needs_update;
void updateSpline();
+ Power clamp(Power in, Power min, Power max) const;
+
+ const Power eps = 1e-3;
};