turning_number.h 491 B

12345678910111213141516171819202122
  1. #ifndef IGL_TURNING_NUMBER_H
  2. #define IGL_TURNING_NUMBER_H
  3. #include <Eigen/Core>
  4. #include "igl_inline.h"
  5. namespace igl
  6. {
  7. /// Compute the turning number of a closed curve in the plane.
  8. ///
  9. /// @param[in] V #V by 2 list of vertex positions
  10. /// @return tn turning number
  11. ///
  12. template <typename DerivedV>
  13. IGL_INLINE typename DerivedV::Scalar turning_number(
  14. const Eigen::MatrixBase<DerivedV> & V);
  15. }
  16. #ifndef IGL_STATIC_LIBRARY
  17. # include "turning_number.cpp"
  18. #endif
  19. #endif