Mercurial > hg > orthanc-stone
comparison 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 |
comparison
equal
deleted
inserted
replaced
165:8d50e6be565d | 166:4f661e2f7b6c |
---|---|
79 | 79 |
80 double GetHeight() const | 80 double GetHeight() const |
81 { | 81 { |
82 return y2_ - y1_; | 82 return y2_ - y1_; |
83 } | 83 } |
84 | |
85 double GetCenterX() const | |
86 { | |
87 return (x1_ + x2_) / 2.0; | |
88 } | |
89 | |
90 double GetCenterY() const | |
91 { | |
92 return (y1_ + y2_) / 2.0; | |
93 } | |
84 }; | 94 }; |
85 } | 95 } |