Browse Source

Fix unproject_ray

KarlLeell 6 years ago
parent
commit
c65eb586fe
2 changed files with 9 additions and 9 deletions
  1. 5 5
      include/igl/unproject_ray.cpp
  2. 4 4
      include/igl/unproject_ray.h

+ 5 - 5
include/igl/unproject_ray.cpp

@@ -16,10 +16,10 @@ template <
   typename Deriveds,
   typename Deriveddir>
 IGL_INLINE void igl::unproject_ray(
-  const Eigen::PlainObjectBase<Derivedpos> & pos,
-  const Eigen::PlainObjectBase<Derivedmodel> & model,
-  const Eigen::PlainObjectBase<Derivedproj> & proj,
-  const Eigen::PlainObjectBase<Derivedviewport> & viewport,
+  const Eigen::MatrixBase<Derivedpos> & pos,
+  const Eigen::MatrixBase<Derivedmodel> & model,
+  const Eigen::MatrixBase<Derivedproj> & proj,
+  const Eigen::MatrixBase<Derivedviewport> & viewport,
   Eigen::PlainObjectBase<Deriveds> & s,
   Eigen::PlainObjectBase<Deriveddir> & dir)
 {
@@ -37,5 +37,5 @@ IGL_INLINE void igl::unproject_ray(
 }
 
 #ifdef IGL_STATIC_LIBRARY
-template void igl::unproject_ray<Eigen::Matrix<float, 2, 1, 0, 2, 1>, Eigen::Matrix<float, 4, 4, 0, 4, 4>, Eigen::Matrix<float, 4, 4, 0, 4, 4>, Eigen::Matrix<float, 4, 1, 0, 4, 1>, Eigen::Matrix<float, 3, 1, 0, 3, 1>, Eigen::Matrix<float, 3, 1, 0, 3, 1> >(Eigen::PlainObjectBase<Eigen::Matrix<float, 2, 1, 0, 2, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<float, 4, 4, 0, 4, 4> > const&, Eigen::PlainObjectBase<Eigen::Matrix<float, 4, 4, 0, 4, 4> > const&, Eigen::PlainObjectBase<Eigen::Matrix<float, 4, 1, 0, 4, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> >&, Eigen::PlainObjectBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> >&);
+template void igl::unproject_ray<Eigen::Matrix<float, 2, 1, 0, 2, 1>, Eigen::Matrix<float, 4, 4, 0, 4, 4>, Eigen::Matrix<float, 4, 4, 0, 4, 4>, Eigen::Matrix<float, 4, 1, 0, 4, 1>, Eigen::Matrix<float, 3, 1, 0, 3, 1>, Eigen::Matrix<float, 3, 1, 0, 3, 1> >(Eigen::MatrixBase<Eigen::Matrix<float, 2, 1, 0, 2, 1> > const&, Eigen::MatrixBase<Eigen::Matrix<float, 4, 4, 0, 4, 4> > const&, Eigen::MatrixBase<Eigen::Matrix<float, 4, 4, 0, 4, 4> > const&, Eigen::MatrixBase<Eigen::Matrix<float, 4, 1, 0, 4, 1> > const&, Eigen::PlainObjectBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> >&, Eigen::PlainObjectBase<Eigen::Matrix<float, 3, 1, 0, 3, 1> >&);
 #endif

+ 4 - 4
include/igl/unproject_ray.h

@@ -31,10 +31,10 @@ namespace igl
     typename Deriveds,
     typename Deriveddir>
   IGL_INLINE void unproject_ray(
-    const Eigen::PlainObjectBase<Derivedpos> & pos,
-    const Eigen::PlainObjectBase<Derivedmodel> & model,
-    const Eigen::PlainObjectBase<Derivedproj> & proj,
-    const Eigen::PlainObjectBase<Derivedviewport> & viewport,
+    const Eigen::MatrixBase<Derivedpos> & pos,
+    const Eigen::MatrixBase<Derivedmodel> & model,
+    const Eigen::MatrixBase<Derivedproj> & proj,
+    const Eigen::MatrixBase<Derivedviewport> & viewport,
     Eigen::PlainObjectBase<Deriveds> & s,
     Eigen::PlainObjectBase<Deriveddir> & dir);
 }