CGAL 5.1 - 2D and 3D Linear Geometry Kernel
Kernel::ComputeSquaredRadius_2 Class Reference

#include <Concepts/FunctionObjectConcepts.h>

Definition

Refines:
AdaptableFunctor (with one argument)
See also
CGAL::Circle_2<Kernel>
CGAL::squared_radius()

Operations

A model of this concept must provide:

Kernel::FT operator() (const Kernel::Circle_2 &c)
 returns the squared radius of c. More...
 
Kernel::FT operator() (const Kernel::Point_2 &p, const Kernel::Point_2 &q, const Kernel::Point_2 &r)
 returns the squared radius of the circle passing through p, q and r. More...
 
Kernel::FT operator() (const Kernel::Point_2 &p, const Kernel::Point_2 &q)
 returns the squared radius of the smallest circle passing through p, and q, i.e. one fourth of the squared distance between p and q. More...
 
Kernel::FT operator() (const Kernel::Point_2 &p)
 returns the squared radius of the smallest circle passing through p, i.e. \( 0\). More...
 

Member Function Documentation

◆ operator()() [1/4]

Kernel::FT Kernel::ComputeSquaredRadius_2::operator() ( const Kernel::Circle_2 c)

returns the squared radius of c.

◆ operator()() [2/4]

Kernel::FT Kernel::ComputeSquaredRadius_2::operator() ( const Kernel::Point_2 p)

returns the squared radius of the smallest circle passing through p, i.e. \( 0\).

◆ operator()() [3/4]

Kernel::FT Kernel::ComputeSquaredRadius_2::operator() ( const Kernel::Point_2 p,
const Kernel::Point_2 q 
)

returns the squared radius of the smallest circle passing through p, and q, i.e. one fourth of the squared distance between p and q.

◆ operator()() [4/4]

Kernel::FT Kernel::ComputeSquaredRadius_2::operator() ( const Kernel::Point_2 p,
const Kernel::Point_2 q,
const Kernel::Point_2 r 
)

returns the squared radius of the circle passing through p, q and r.

Precondition
p, q and r are not collinear.