9#ifndef IGL_SORT_VECTORS_CCW
10#define IGL_SORT_VECTORS_CCW
29 template <
typename DerivedS,
typename DerivedI>
31 const Eigen::PlainObjectBase<DerivedS>& P,
32 const Eigen::PlainObjectBase<DerivedS>& N,
33 Eigen::PlainObjectBase<DerivedI> &order,
34 Eigen::PlainObjectBase<DerivedS> &sorted,
35 Eigen::PlainObjectBase<DerivedI> &inv_order);
37 template <
typename DerivedS,
typename DerivedI>
39 const Eigen::PlainObjectBase<DerivedS>& P,
40 const Eigen::PlainObjectBase<DerivedS>& N,
41 Eigen::PlainObjectBase<DerivedI> &order,
42 Eigen::PlainObjectBase<DerivedS> &sorted);
44 template <
typename DerivedS,
typename DerivedI>
46 const Eigen::PlainObjectBase<DerivedS>& P,
47 const Eigen::PlainObjectBase<DerivedS>& N,
48 Eigen::PlainObjectBase<DerivedI> &order,
49 Eigen::PlainObjectBase<DerivedI> &inv_order);
51 template <
typename DerivedS,
typename DerivedI>
53 const Eigen::PlainObjectBase<DerivedS>& P,
54 const Eigen::PlainObjectBase<DerivedS>& N,
55 Eigen::PlainObjectBase<DerivedI> &order);
60#ifndef IGL_STATIC_LIBRARY
61#include "sort_vectors_ccw.cpp"
#define IGL_INLINE
Definition igl_inline.h:15
void sort_vectors_ccw(const Eigen::PlainObjectBase< DerivedS > &P, const Eigen::PlainObjectBase< DerivedS > &N, Eigen::PlainObjectBase< DerivedI > &order, Eigen::PlainObjectBase< DerivedS > &sorted, Eigen::PlainObjectBase< DerivedI > &inv_order)
Sorts a set of N coplanar vectors in a ccw order, and returns their order.