CGAL 6.2 - 2D and 3D Linear Geometry Kernel

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

## Definition

Refines
  `AdaptableTernaryFunction`

See also
  `CGAL::compare_distance_to_point()`
  `CGAL::compare_squared_distance()`

## Operations
A model of this concept must provide:
Comparison_result | operator() (const Type1 &obj1, const Type2 &obj2, const Kernel::FT &d2)
| compares the squared distance between the two geometrical objects `obj1` and `obj2` to the value `d2`, where the types `Type1` and `Type2` can be any of the following:

## Member Function Documentation

## ◆ operator()()

Comparison_result Kernel::CompareSquaredDistance_2::operator() | ( | const Type1 & | obj1,
|  | const Type2 & | obj2,
|  | const Kernel::FT & | d2
| ) |  |

compares the squared distance between the two geometrical objects `obj1` and `obj2` to the value `d2`, where the types `Type1` and `Type2` can be any of the following:

- `Kernel::Point_2`
- `Kernel::Line_2`
- `Kernel::Ray_2`
- `Kernel::Segment_2`
- `Kernel::Triangle_2`