CGAL 6.2 - 2D and 3D Linear Geometry Kernel

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

## Definition

Refines
  `AdaptableBinaryFunction`

See also
  `CGAL::Iso_rectangle_2<Kernel>`
  `CGAL::Segment_2<Kernel>`
  `CGAL::Triangle_2<Kernel>`

## Operations
A model of this concept must provide:
Kernel::Point_2 | operator() (const Kernel::Segment_2 &s, int i)
| returns source or target of `s`: `fo``(s,0)` returns the source of `s`, `fo``(s,1)` returns the target of `s`.
Kernel::Point_2 | operator() (const Kernel::Iso_rectangle_2 &r, int i)
| returns the i-th vertex of `r` in counterclockwise order, starting with the lower left vertex.
Kernel::Point_2 | operator() (const Kernel::Triangle_2 &t, int i)
| returns the i-th vertex of `t`.

## Member Function Documentation

## ◆ operator()() [1/3]

Kernel::Point_2 Kernel::ConstructVertex_2::operator() | ( | const Kernel::Iso_rectangle_2 & | r,
|  | int | i
| ) |  |

returns the i-th vertex of `r` in counterclockwise order, starting with the lower left vertex.

The parameter `i` is taken modulo 4.

## ◆ operator()() [2/3]

Kernel::Point_2 Kernel::ConstructVertex_2::operator() | ( | const Kernel::Segment_2 & | s,
|  | int | i
| ) |  |

returns source or target of `s`: `fo``(s,0)` returns the source of `s`, `fo``(s,1)` returns the target of `s`.

The parameter `i` is taken modulo 2.

## ◆ operator()() [3/3]

Kernel::Point_2 Kernel::ConstructVertex_2::operator() | ( | const Kernel::Triangle_2 & | t,
|  | int | i
| ) |  |

returns the i-th vertex of `t`.

The parameter `i` is taken modulo 3.