CGAL 4.7 - 2D and 3D Linear Geometry Kernel: Kernel::CompareSquaredDistance_2 Concept Reference

\( \newcommand{\E}{\mathrm{E}} \) \( \newcommand{\A}{\mathrm{A}} \) \( \newcommand{\R}{\mathrm{R}} \) \( \newcommand{\N}{\mathrm{N}} \) \( \newcommand{\Q}{\mathrm{Q}} \) \( \newcommand{\Z}{\mathrm{Z}} \) \( \def\ccSum #1#2#3{ \sum_{#1}^{#2}{#3} } \def\ccProd #1#2#3{ \sum_{#1}^{#2}{#3} }\)

CGAL 4.7 - 2D and 3D Linear Geometry Kernel

All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Groups Pages
List of all members
Kernel::CompareSquaredDistance_2 Concept Reference
Kernel Function Object Concepts

## Definition

Refines:
  `AdaptableFunctor` (with three arguments)

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: More...

## Member Function Documentation

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`