CGAL 5.6 - 2D and 3D Linear Geometry Kernel

See also
CGAL::side_of_bounded_circle()

Functions

template<typename Kernel >
Oriented_side CGAL::side_of_oriented_circle (const CGAL::Point_2< Kernel > &p, const CGAL::Point_2< Kernel > &q, const CGAL::Point_2< Kernel > &r, const CGAL::Point_2< Kernel > &test)
 returns the relative position of point test to the oriented circle defined by p, q and r. More...
 

Function Documentation

◆ side_of_oriented_circle()

template<typename Kernel >
Oriented_side CGAL::side_of_oriented_circle ( const CGAL::Point_2< Kernel > &  p,
const CGAL::Point_2< Kernel > &  q,
const CGAL::Point_2< Kernel > &  r,
const CGAL::Point_2< Kernel > &  test 
)

#include <CGAL/Kernel/global_functions.h>

returns the relative position of point test to the oriented circle defined by p, q and r.

The order of the points p, q and r is important, since it determines the orientation of the implicitly constructed circle.

If p, q and r are collinear, the circle degenerates in a line. CGAL::ON_ORIENTED_BOUNDARY is returned if test is also collinear or if two points are identical, otherwise, side_of_oriented_circle(r, q, test, p) is returned.