CGAL::Rectangular_p_center_default_traits_2<R>

Definition

The class Rectangular_p_center_default_traits_2<R> defines types and operations needed to compute rectilinear p-centers of a planar point set using the function rectangular_p_center_2.

Requirements

The template parameter R is a model for Kernel.

Is Model for the Concepts

RectangularPCenterTraits_2

Types

Rectangular_p_center_default_traits_2<R>::FT
typedef to R::FT.


Rectangular_p_center_default_traits_2<R>::Point_2
typedef to R::Point_2.


Rectangular_p_center_default_traits_2<R>::Iso_rectangle_2
typedef to R::Iso_rectangle_2.


Rectangular_p_center_default_traits_2<R>::Less_x_2
typedef to R::Less_x_2.


Rectangular_p_center_default_traits_2<R>::Less_y_2
typedef to R::Less_y_2.


Rectangular_p_center_default_traits_2<R>::Construct_vertex_2
typedef to R::Construct_vertex_2.


Rectangular_p_center_default_traits_2<R>::Construct_iso_rectangle_2
typedef to R::Construct_iso_rectangle_2.


Rectangular_p_center_default_traits_2<R>::Signed_x_distance_2
adaptable binary function class: Point_2 × Point_2 FT returns the signed distance of two points' x-coordinates.


Rectangular_p_center_default_traits_2<R>::Signed_y_distance_2
adaptable binary function class: Point_2 × Point_2 FT returns the signed distance of two points' y-coordinates.


Rectangular_p_center_default_traits_2<R>::Infinity_distance_2
adaptable binary function class: Point_2 × Point_2 FT returns the || · || distance of two points.


Rectangular_p_center_default_traits_2<R>::Signed_infinity_distance_2
adaptable binary function class: Point_2 × Point_2 FT returns the signed || · || distance of two points.


Rectangular_p_center_default_traits_2<R>::Construct_point_2_below_left_implicit_point_2
3-argument function class: Point_2 × Point_2 × FT Point_2. For arguments (p,q,r) it returns the lower-left corner of the iso-oriented square with sidelength r and upper-right corner at the intersection of the vertical line through p and the horizontal line through q.


Rectangular_p_center_default_traits_2<R>::Construct_point_2_below_right_implicit_point_2
3-argument function class: Point_2 × Point_2 × FT Point_2. For arguments (p,q,r) it returns the lower-right corner of the iso-oriented square with sidelength r and upper-left corner at the intersection of the vertical line through p and the horizontal line through q.


Rectangular_p_center_default_traits_2<R>::Construct_point_2_above_right_implicit_point_2
3-argument function class: Point_2 × Point_2 × FT Point_2. For arguments (p,q,r) it returns the upper-right corner of the iso-oriented square with sidelength r and lower-left corner at the intersection of the vertical line through p and the horizontal line through q.


Rectangular_p_center_default_traits_2<R>::Construct_point_2_above_left_implicit_point_2
3-argument function class: Point_2 × Point_2 × FT Point_2. For arguments (p,q,r) it returns the upper-left corner of the iso-oriented square with sidelength r and lower-right corner at the intersection of the vertical line through p and the horizontal line through q.

Operations

For every function class listed above there is a member function to fetch the corresponding function object.

Inf_distance_2 t.inf_distance_2_object () const
Signed_inf_distance_2
t.signed_inf_distance_2_object () const
Construct_vertex_2 t.construct_vertex_2_object () const
Construct_iso_rectangle_2
t.construct_iso_rectangle_2_object () const
Construct_iso_rectangle_2_below_left_point_2
t.construct_iso_rectangle_2_below_left_point_2_object () const
Construct_iso_rectangle_2_above_left_point_2
t.construct_iso_rectangle_2_above_left_point_2_object () const
Construct_iso_rectangle_2_below_right_point_2
t.construct_iso_rectangle_2_below_right_point_2_object () const
Construct_iso_rectangle_2_above_right_point_2
t.construct_iso_rectangle_2_above_right_point_2_object () const

See Also

CGAL::rectangular_p_center_2