ArrangementLandmarkTraits_2

Definition

The landmark-traits concept refines the basic traits concept by adding operations needed for the landmarks point-location strategy, namely - approximating points and connecting points with a simple x-monotone curve.

A model of this concept must define the Approximate_number_type, which is used to approximate the coordinates of Point_2 instances. It is recommended to define the approximated number type as the built-in double type.

Refines

ArrangementBasicTraits_2

Types

ArrangementLandmarkTraits_2::Approximate_number_type
the number type used to approximate point coordinates.

Functor Types

ArrangementLandmarkTraits_2::Approximate_2
provides the operator :
Approximate_number_type operator() (Point_2 p, int i)
which returns an approximation of p's x-coordinate (if i == 0), or of p's y-coordinate (if i == 1).


ArrangementLandmarkTraits_2::Construct_x_monotone_curve_2
provides the operator :
X_monotone_curve_2 operator() (Point_2 p1, Point_2 p2)
returns an x-monotone curve connecting p1 and p2 (i.e., the two input points are its endpoints).

Creation

ArrangementLandmarkTraits_2 traits;
default constructor.

ArrangementLandmarkTraits_2 traits ( other);
copy constructor.

ArrangementLandmarkTraits_2
traits = other assignment operator.

Accessing Functor Objects

Approximate_2 traits.approximate_2_object ()
Construct_x_monotone_curve_2
traits.construct_x_monotone_curve_2_object ()

Has Models

CGAL::Arr_non_caching_segment_basic_traits_2<Kernel>
CGAL::Arr_segment_traits_2<Kernel>
CGAL::Arr_polyline_traits_2<SegmentTraits>
CGAL::Arr_conic_traits_2<RatKernel,AlgKernel,NtTraits>

See Also

ArrangementBasicTraits_2