Jelajahi Sumber

std::abs

Former-commit-id: c4e14e6e6ca584f8d0eaa5dda96fe74737bf7007
Alec Jacobson 10 tahun lalu
induk
melakukan
1007b8399a
1 mengubah file dengan 2 tambahan dan 1 penghapusan
  1. 2 1
      include/igl/trackball.cpp

+ 2 - 1
include/igl/trackball.cpp

@@ -22,7 +22,8 @@
 template <typename Q_type>
 static IGL_INLINE Q_type _QuatD(double w, double h)
 {
-  return (Q_type)(abs(w) < abs(h) ? abs(w) : abs(h)) - 4;
+  using namespace std;
+  return (Q_type)(std::abs(w) < std::abs(h) ? std::abs(w) : std::abs(h)) - 4;
 }
 template <typename Q_type>
 static IGL_INLINE Q_type _QuatIX(double x, double w, double h)