diff options
author | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-02 11:20:28 -0700 |
---|---|---|
committer | John Firebaugh <john.firebaugh@gmail.com> | 2016-05-02 11:26:37 -0700 |
commit | c8c36c395c0c47d983a3a8cf782cd470800ba3bf (patch) | |
tree | b2c10c00ee3741daddb7c6cb3e368679b391d0d0 /include/mbgl/util/vec.hpp | |
parent | 41f63db98bb0f1bd960b3555c20d8f09c212dbc5 (diff) | |
download | qtlocation-mapboxgl-c8c36c395c0c47d983a3a8cf782cd470800ba3bf.tar.gz |
[core] Remove unused
Diffstat (limited to 'include/mbgl/util/vec.hpp')
-rw-r--r-- | include/mbgl/util/vec.hpp | 24 |
1 files changed, 0 insertions, 24 deletions
diff --git a/include/mbgl/util/vec.hpp b/include/mbgl/util/vec.hpp index 7c91ee0ad7..40d540fca4 100644 --- a/include/mbgl/util/vec.hpp +++ b/include/mbgl/util/vec.hpp @@ -96,30 +96,6 @@ struct vec2 { }; template <typename T = double> -struct vec3 { - T x, y, z; - - inline vec3() = default; - inline vec3(const vec3& o) : x(o.x), y(o.y), z(o.z) {} - inline vec3(T x_, T y_, T z_) : x(x_), y(y_), z(z_) {} - inline bool operator==(const vec3& rhs) const { - return x == rhs.x && y == rhs.y && z == rhs.z; - } - - template<typename U = T, typename std::enable_if<std::numeric_limits<U>::has_quiet_NaN, int>::type = 0> - explicit operator bool() const { - return !std::isnan(x) && !std::isnan(y) && !std::isnan(z); - } - - template<typename U = T, typename std::enable_if<!std::numeric_limits<U>::has_quiet_NaN, int>::type = 0> - explicit operator bool() const { - return x != std::numeric_limits<T>::min() - && y != std::numeric_limits<T>::min() - && z != std::numeric_limits<T>::min(); - } -}; - -template <typename T = double> struct vec4 { T x, y, z, w; |