From ec0cb7d2c1660f33c149f3a118c5e8a067b70a3c Mon Sep 17 00:00:00 2001 From: Danny Robson Date: Fri, 11 Aug 2017 15:20:48 +1000 Subject: [PATCH] region: remove scale operation it's not immediately apparent how scale operates on both of point and extent components. rather than complicate matters we remove them in preference of letting the user construct it directly. --- region.cpp | 11 ----------- region.hpp | 2 -- 2 files changed, 13 deletions(-) diff --git a/region.cpp b/region.cpp index 9cbb4dff..b25079d5 100644 --- a/region.cpp +++ b/region.cpp @@ -98,17 +98,6 @@ util::region::magnitude (extent_t _e) } -//----------------------------------------------------------------------------- -template -void -util::region::scale (T factor) -{ - auto o = (e * factor - e) / T(2); - p -= o; - e *= factor; -} - - //----------------------------------------------------------------------------- template bool diff --git a/region.hpp b/region.hpp index db88f01d..f38bf813 100644 --- a/region.hpp +++ b/region.hpp @@ -59,8 +59,6 @@ namespace util { extent_t magnitude (void) const; extent_t magnitude (extent_t); - void scale (T factor); - bool empty (void) const; //---------------------------------------------------------------------