diff options
author | Armin Le Grand <Armin.Le.Grand@cib.de> | 2018-04-06 22:32:24 +0200 |
---|---|---|
committer | Armin Le Grand <Armin.Le.Grand@cib.de> | 2018-04-06 22:32:24 +0200 |
commit | eba4d5b2b76cefde90cb3d6638c736f435023a45 (patch) | |
tree | 43befa620475c11f3dde00e5ea141e1efd95a334 /basegfx/source/numeric/ftools.cxx | |
parent | 6c14c27c75a03e2363f2b363ddf0a6f2f46cfa91 (diff) |
Revert "SOSAW080: Added first bunch of basic changes to helpers"
This reverts commit 6c14c27c75a03e2363f2b363ddf0a6f2f46cfa91.
Diffstat (limited to 'basegfx/source/numeric/ftools.cxx')
-rw-r--r-- | basegfx/source/numeric/ftools.cxx | 53 |
1 files changed, 0 insertions, 53 deletions
diff --git a/basegfx/source/numeric/ftools.cxx b/basegfx/source/numeric/ftools.cxx index d1eca66ca2fc..994bd29e30eb 100644 --- a/basegfx/source/numeric/ftools.cxx +++ b/basegfx/source/numeric/ftools.cxx @@ -45,59 +45,6 @@ namespace basegfx } } - double snapToZeroRange(double v, double fWidth) - { - if(fTools::equalZero(fWidth)) - { - // with no range all snaps to range bound - return 0.0; - } - else - { - if(v < 0.0 || v > fWidth) - { - double fRetval(fmod(v, fWidth)); - - if(fRetval < 0.0) - { - fRetval += fWidth; - } - - return fRetval; - } - else - { - return v; - } - } - } - - double snapToRange(double v, double fLow, double fHigh) - { - if(fTools::equal(fLow, fHigh)) - { - // with no range all snaps to range bound - return 0.0; - } - else - { - if(fLow > fHigh) - { - // correct range order. Evtl. assert this (?) - std::swap(fLow, fHigh); - } - - if(v < fLow || v > fHigh) - { - return snapToZeroRange(v - fLow, fHigh - fLow) + fLow; - } - else - { - return v; - } - } - } - double normalizeToRange(double v, const double fRange) { if(fTools::lessOrEqual(fRange, 0.0)) |