diff options
author | André Nusser <andre.nusser@googlemail.com> | 2020-04-25 14:32:40 +0200 |
---|---|---|
committer | André Nusser <andre.nusser@googlemail.com> | 2020-04-25 14:32:40 +0200 |
commit | 12e7ad403627f39f675fba85ad240af6306f0f67 (patch) | |
tree | 4078060c8af975b29a4a0024c708a7e65fba3c37 | |
parent | 08489fe7085be47298e37adbb7787033a17b5905 (diff) |
Also enforce monotonicity on initialization.
-rw-r--r-- | src/powermap.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/powermap.cc b/src/powermap.cc index ee2e67c..78925ee 100644 --- a/src/powermap.cc +++ b/src/powermap.cc @@ -88,9 +88,9 @@ Power Powermap::map(Power in) void Powermap::reset() { - fixed[0] = {0., 0.}; - fixed[1] = {.5, .5}; - fixed[2] = {1., 1.}; + setFixed0({eps, eps}); + setFixed1({.5, .5}); + setFixed2({1-eps, 1-eps}); // FIXME: better false? shelf = true; |