diff options
author | Roman Masanin <36927roma@gmail.com> | 2020-09-14 20:47:15 +0200 |
---|---|---|
committer | Roman Masanin <36927roma@gmail.com> | 2020-09-14 20:47:15 +0200 |
commit | 97550b4fd90cf1c3e9704ac03295475a3a21b01c (patch) | |
tree | 2f415a4829c705e6a2cdfb033ad861bf448aa7e5 /src/math/Rect.h | |
parent | finish work on ProcessPlayerVehicleEngine and cleanup (diff) | |
parent | Move a bunch of math to cpp files + small fixes (diff) | |
download | re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.tar re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.tar.gz re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.tar.bz2 re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.tar.lz re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.tar.xz re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.tar.zst re3-97550b4fd90cf1c3e9704ac03295475a3a21b01c.zip |
Diffstat (limited to 'src/math/Rect.h')
-rw-r--r-- | src/math/Rect.h | 14 |
1 files changed, 2 insertions, 12 deletions
diff --git a/src/math/Rect.h b/src/math/Rect.h index 326bb479..fa8d8de4 100644 --- a/src/math/Rect.h +++ b/src/math/Rect.h @@ -8,18 +8,8 @@ public: float right; // x max float top; // y min - CRect(void){ - left = 1000000.0f; - top = 1000000.0f; - right = -1000000.0f; - bottom = -1000000.0f; - } - CRect(float l, float t, float r, float b){ - left = l; - top = t; - right = r; - bottom = b; - } + CRect(void); + CRect(float l, float t, float r, float b); void ContainPoint(CVector const &v){ if(v.x < left) left = v.x; if(v.x > right) right = v.x; |