diff options
author | Konstantin Käfer <mail@kkaefer.com> | 2014-12-04 18:29:42 +0100 |
---|---|---|
committer | Konstantin Käfer <mail@kkaefer.com> | 2014-12-04 20:02:50 +0100 |
commit | abafb52f37beb5659efc2105ccd1568e1f754898 (patch) | |
tree | 6a60636d3497560ca61e5aae5f6d7061c4f18553 /include/mbgl/util/rect.hpp | |
parent | bff6aeb4da41dee1f5f1cfa0be81b6c257257253 (diff) | |
download | qtlocation-mapboxgl-abafb52f37beb5659efc2105ccd1568e1f754898.tar.gz |
make most headers private
Diffstat (limited to 'include/mbgl/util/rect.hpp')
-rw-r--r-- | include/mbgl/util/rect.hpp | 22 |
1 files changed, 0 insertions, 22 deletions
diff --git a/include/mbgl/util/rect.hpp b/include/mbgl/util/rect.hpp deleted file mode 100644 index f5c77f93d1..0000000000 --- a/include/mbgl/util/rect.hpp +++ /dev/null @@ -1,22 +0,0 @@ -#ifndef MBGL_UTIL_RECT -#define MBGL_UTIL_RECT - -namespace mbgl { - -template <typename T> -struct Rect { - inline Rect() {} - inline Rect(T x_, T y_, T w_, T h_) : x(x_), y(y_), w(w_), h(h_) {} - T x = 0, y = 0; - T w = 0, h = 0; - - template <typename Number> - Rect operator *(Number value) const { - return Rect(x * value, y * value, w * value, h * value); - } - - operator bool() const { return w != 0 && h != 0; } -}; -} - -#endif |