CGAL 5.1 - 2D and 3D Linear Geometry Kernel
Kernel::ConstructIsoRectangle_2 Class Reference

#include <Concepts/FunctionObjectConcepts.h>

Definition

Refines:
AdaptableFunctor (with two arguments)
See also
CGAL::Iso_rectangle_2<Kernel>

Operations

A model of this concept must provide:

Kernel::Iso_rectangle_2 operator() (const Kernel::Point_2 &p, const Kernel::Point_2 &q)
 introduces an iso-oriented rectangle with diagonal opposite vertices p and q such that p is the lexicographically smallest point in the rectangle. More...
 
Kernel::Iso_rectangle_2 operator() (const Kernel::Point_2 &p, const Kernel::Point_2 &q, int)
 introduces an iso-oriented rectangle with diagonal opposite vertices p and q. More...
 
Kernel::Iso_rectangle_2 operator() (const Kernel::Point_2 &left, const Kernel::Point_2 &right, const Kernel::Point_2 &bottom, const Kernel::Point_2 &top)
 introduces an iso-oriented rectangle fo whose minimal \( x\) coordinate is the one of left, the maximal \( x\) coordinate is the one of right, the minimal \( y\) coordinate is the one of bottom, the maximal \( y\) coordinate is the one of top. More...
 

Member Function Documentation

◆ operator()() [1/3]

Kernel::Iso_rectangle_2 Kernel::ConstructIsoRectangle_2::operator() ( const Kernel::Point_2 left,
const Kernel::Point_2 right,
const Kernel::Point_2 bottom,
const Kernel::Point_2 top 
)

introduces an iso-oriented rectangle fo whose minimal \( x\) coordinate is the one of left, the maximal \( x\) coordinate is the one of right, the minimal \( y\) coordinate is the one of bottom, the maximal \( y\) coordinate is the one of top.

◆ operator()() [2/3]

Kernel::Iso_rectangle_2 Kernel::ConstructIsoRectangle_2::operator() ( const Kernel::Point_2 p,
const Kernel::Point_2 q 
)

introduces an iso-oriented rectangle with diagonal opposite vertices p and q such that p is the lexicographically smallest point in the rectangle.

◆ operator()() [3/3]

Kernel::Iso_rectangle_2 Kernel::ConstructIsoRectangle_2::operator() ( const Kernel::Point_2 p,
const Kernel::Point_2 q,
int   
)

introduces an iso-oriented rectangle with diagonal opposite vertices p and q.

The int argument value is only used to distinguish the two overloaded functions.

Precondition
p.x()<=q.x() and p.y()<=q.y().