Mercurial > hg > orthanc-stone
diff Framework/Toolbox/Extent2D.h @ 166:4f661e2f7b6c wasm
cont
author | Sebastien Jodogne <s.jodogne@gmail.com> |
---|---|
date | Thu, 22 Feb 2018 19:36:23 +0100 |
parents | e2fe9352f240 |
children | 62964bfbbc00 |
line wrap: on
line diff
--- a/Framework/Toolbox/Extent2D.h Thu Feb 15 13:51:29 2018 +0100 +++ b/Framework/Toolbox/Extent2D.h Thu Feb 22 19:36:23 2018 +0100 @@ -81,5 +81,15 @@ { return y2_ - y1_; } + + double GetCenterX() const + { + return (x1_ + x2_) / 2.0; + } + + double GetCenterY() const + { + return (y1_ + y2_) / 2.0; + } }; }