Эх сурвалжийг харах

std::abs

Former-commit-id: c4e14e6e6ca584f8d0eaa5dda96fe74737bf7007
Alec Jacobson 10 жил өмнө
parent
commit
1007b8399a

+ 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)