Пример #1
0
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();
}
Пример #2
0
Segment_2 sorted(const Segment_2& s) {
  if (s.source() > s.target()) {
    return s.opposite();
  }
  return s;
}