- Add missing functor for compare_yx().

This commit is contained in:
Sylvain Pion
2006-07-31 16:22:08 +00:00
parent e208720200
commit ead2e93fdb
13 changed files with 93 additions and 36 deletions
@@ -639,6 +639,19 @@ namespace CartesianKernelFunctors {
{ return CGAL_NTS compare(p.x(), q.x()); }
};
template <typename K>
class Compare_yx_2
{
typedef typename K::Point_2 Point_2;
public:
typedef typename K::Comparison_result result_type;
typedef Arity_tag< 2 > Arity;
result_type
operator()( const Point_2& p, const Point_2& q) const
{ return compare_lexicographically_xyC2(p.y(), p.x(), q.y(), q.x()); }
};
template <typename K>
class Compare_y_at_x_2
{