[core] Remove unused

This commit is contained in:
John Firebaugh
2016-05-02 11:20:28 -07:00
parent 41f63db98b
commit c8c36c395c
2 changed files with 0 additions and 35 deletions

View File

@@ -95,30 +95,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;

View File

@@ -1,11 +0,0 @@
#include <mbgl/util/vec.hpp>
namespace mbgl {
template struct vec2<double>;
template struct vec2<float>;
template struct vec3<double>;
template struct vec4<double>;
} // namespace mbgl