CGAL 6.1.2 - 2D Arrangements: AosTraits::CompareYAtXRight_2 Concept Reference

CGAL 6.1.2 - 2D Arrangements

Loading...
Searching...
No Matches
List of all members
AosTraits::CompareYAtXRight_2 Concept Reference
Reference Manual » Concepts » Function Object Concepts

## Definition

Refines
  `AdaptableTernaryFunction`

Has models
  `AosBasicTraits_2::Compare_y_at_x_right_2`

## Operations
A model of this concept must provide:
Comparison_result | operator() (AosTraits::X_monotone_curve_2 xc1, AosTraits::X_monotone_curve_2 xc2, AosTraits::Point_2 p)
| accepts two \(x\)-monotone curves `xc1` and `xc2` that have a common left endpoint `p`, and returns `CGAL::SMALLER`, `CGAL::EQUAL` or `CGAL::LARGER` according to the relative position of the two curves immediately to the right of \(p\).

## Member Function Documentation

## ◆ operator()()

Comparison_result AosTraits::CompareYAtXRight_2::operator() | ( | AosTraits::X_monotone_curve_2 | xc1,
|  | AosTraits::X_monotone_curve_2 | xc2,
|  | AosTraits::Point_2 | p
| ) |  |

accepts two \(x\)-monotone curves `xc1` and `xc2` that have a common left endpoint `p`, and returns `CGAL::SMALLER`, `CGAL::EQUAL` or `CGAL::LARGER` according to the relative position of the two curves immediately to the right of \(p\).

Note that in case one of the \(x\)-monotone curves is a vertical segment emanating upward from `p`, it is always considered to be above the other curve.