CGAL 6.2 - 2D Arrangements: AosTraits::ApproximatePoint_2 Concept Reference

CGAL 6.2 - 2D Arrangements

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

## Definition

Refines
  `Functor`

Has models
  `AosApproximatePointTraits_2::Approximate_2`
  `AosApproximateTraits_2::Approximate_2`

## Operations
A model of this concept must provide:
Approximate_number_type | operator() (AosTraits::Point_2 p, int i)
| obtains an approximation of `p`'s \(x\)-coordinate (if `i == 0`), or of `p`'s \(y\)-coordinate (if `i == 1`).

## Member Function Documentation

## ◆ operator()()

Approximate_number_type AosTraits::ApproximatePoint_2::operator() | ( | AosTraits::Point_2 | p,
|  | int | i
| ) |  |

obtains an approximation of `p`'s \(x\)-coordinate (if `i == 0`), or of `p`'s \(y\)-coordinate (if `i == 1`).

Precondition
  `i` is either 0 or 1.