CGAL 6.2 - 2D and 3D Linear Geometry Kernel: Kernel::CompareSquaredDistance_3 Concept Reference

CGAL 6.2 - 2D and 3D Linear Geometry Kernel

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

## Definition

Refines
  `AdaptableTernaryFunction`

See also
  `Kernel::CompareDistance_3`
  `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`, for all pairs `Type1` and `Type2`, where the types `Type1` and `Type2` can be any of the following:
Comparison_result | operator() (const Kernel::Point_3 &p, const Kernel::Point_3 &q, const Kernel::Point_3 &r, const Kernel::Point_3 &query, const Kernel::FT &sqd)
| compares the squared distance between the plane constructed from points `p`, `q`, and `r` and `query` to the value `sqd`.

## Member Function Documentation

## ◆ operator()()

Comparison_result Kernel::CompareSquaredDistance_3::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`, for all pairs `Type1` and `Type2`, where the types `Type1` and `Type2` can be any of the following:

- `Kernel::Point_3`
- `Kernel::Line_3`
- `Kernel::Ray_3`
- `Kernel::Segment_3`
- `Kernel::Plane_3`