CGAL 6.2 - 2D and 3D Linear Geometry Kernel

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

## Definition

See also
  `CGAL::compare_squared_radius()`

## Operations
A model of this concept must provide:
Comparison_result | operator() (const Kernel::Point_3 &p, const Kernel::FT &sr)
| compares the squared radius of the sphere of radius `0` centered at `p` to `sr`.
Comparison_result | operator() (const Kernel::Point_3 &p, const Kernel::Point_3 &q, const Kernel::FT &sr)
| compares the squared radius of the smallest sphere passing through the points `p` and `q` to `sr`.
Comparison_result | operator() (const Kernel::Point_3 &p, const Kernel::Point_3 &q, const Kernel::Point_3 &r, const Kernel::FT &sr)
| compares the squared radius of the smallest sphere defined by the points `p`, `q`, and `r` to `sr`.
Comparison_result | operator() (const Kernel::Point_3 &p, const Kernel::Point_3 &q, const Kernel::Point_3 &r, const Kernel::Point_3 &s, const Kernel::FT &sr)
| compares the squared radius of the sphere defined by the points `p`, `q`, `r`, and `s` to `sr`.

## Member Function Documentation

## ◆ operator()()

Comparison_result Kernel::CompareSquaredRadius_3::operator() | ( | const Kernel::Point_3 & | p,
|  | const Kernel::FT & | sr
| ) |  |

compares the squared radius of the sphere of radius `0` centered at `p` to `sr`.

This returns CGAL::EQUAL if `sr` is zero, CGAL::SMALLER if `sr` is positive, and CGAL::LARGER if `sr` is negative.