CONTOURTILER_BEGIN_NAMESPACE Segment_2 lexicographically_ordered(const Segment_2& s) { if (CGAL::lexicographically_xy_smaller(s.source(), s.target())) return s; return s.opposite(); }
Segment_2 sorted(const Segment_2& s) { if (s.source() > s.target()) { return s.opposite(); } return s; }