Browse Source

bug in procrustes templating

Former-commit-id: e52db77e3e07f78be0793fcb9f2389a607c43d5b
Alec Jacobson 10 years ago
parent
commit
6e2c0ff218
1 changed files with 4 additions and 3 deletions
  1. 4 3
      include/igl/procrustes.h

+ 4 - 3
include/igl/procrustes.h

@@ -78,13 +78,14 @@ namespace igl
   //   igl::procrustes(X,Y,true,false,T);
   //   MatrixXd Xprime = (X * T.linear()).rowwise() + T.translation().transpose();
   template <
-    typename DerivedV, 
+    typename DerivedX, 
+    typename DerivedY, 
     typename Scalar, 
     int DIM, 
     int TType>
   IGL_INLINE void procrustes(
-    const Eigen::PlainObjectBase<DerivedV>& X,
-    const Eigen::PlainObjectBase<DerivedV>& Y,
+    const Eigen::PlainObjectBase<DerivedX>& X,
+    const Eigen::PlainObjectBase<DerivedY>& Y,
     bool includeScaling,
     bool includeReflections,
     Eigen::Transform<Scalar,DIM,TType>& T);