CGAL 6.2 - 2D and 3D Linear Geometry Kernel

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

## Definition

Refines
  `AdaptableBinaryFunction`

See also
  `CGAL::squared_distance()`

## Operations
A model of this concept must provide:
Kernel::FT | operator() (Type1 obj1, Type2 obj2)
| returns the squared distance between two geometrical objects of type for all pairs `Type1` and `Type2`, where the types `Type1` and `Type2` can be any of the following:

## Member Function Documentation

## ◆ operator()()

Kernel::FT Kernel::ComputeSquaredDistance_2::operator() | ( | Type1 | obj1,
|  | Type2 | obj2
| ) |  |

returns the squared distance between two geometrical objects of type for all pairs `Type1` and `Type2`, 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`

as well as any combination of `Kernel::Point_2` and `Kernel::Weighted_point_2`