diff options
author | André Nusser <andre.nusser@googlemail.com> | 2020-04-25 14:17:18 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2020-04-25 14:17:35 +0200 |
commit | 08489fe7085be47298e37adbb7787033a17b5905 (patch) | |
tree | eddae61eed88cd5043fbe05c4af86d235aa3b7d7 /src/powermap.h | |
parent | 0ce90a85fa6d657ed423171bc94320a613b53e1e (diff) |
Enforce monotonicity in the powermap by the set functions.
Diffstat (limited to 'src/powermap.h')
-rw-r--r-- | src/powermap.h | 3 |
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; }; |