diff options
| author | bunnei <bunneidev@gmail.com> | 2015-05-14 16:39:17 -0400 |
|---|---|---|
| committer | bunnei <bunneidev@gmail.com> | 2015-05-14 16:39:17 -0400 |
| commit | 4b542f91ef39316588a13e57160bfb5c49df2b7b (patch) | |
| tree | b06cde4fa721c4c096e07c6154437e3da30b6a20 /src/common/common_types.h | |
| parent | e83bc5b7ee45ae24821c4cd185dd6a14dbd3b4d4 (diff) | |
| parent | a31fd7f86bea249135b66010569c22982e0015af (diff) | |
Merge pull request #768 from linkmauve/axe-math_utils
Continue the axing of common
Diffstat (limited to 'src/common/common_types.h')
| -rw-r--r-- | src/common/common_types.h | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/src/common/common_types.h b/src/common/common_types.h index 644709ba6..f6de0adfc 100644 --- a/src/common/common_types.h +++ b/src/common/common_types.h @@ -87,29 +87,3 @@ protected: NonCopyable(NonCopyable&) = delete; NonCopyable& operator=(NonCopyable&) = delete; }; - -namespace Common { -/// Rectangle data structure -class Rect { -public: - Rect(int x0=0, int y0=0, int x1=0, int y1=0) { - x0_ = x0; - y0_ = y0; - x1_ = x1; - y1_ = y1; - } - ~Rect() { } - - int x0_; ///< Rect top left X-coordinate - int y0_; ///< Rect top left Y-coordinate - int x1_; ///< Rect bottom left X-coordinate - int y1_; ///< Rect bottom right Y-coordinate - - inline u32 width() const { return std::abs(x1_ - x0_); } - inline u32 height() const { return std::abs(y1_ - y0_); } - - inline bool operator == (const Rect& val) const { - return (x0_ == val.x0_ && y0_ == val.y0_ && x1_ == val.x1_ && y1_ == val.y1_); - } -}; -} |
