CGAL 5.1 - 2D and 3D Linear Geometry Kernel

See also
CGAL::left_turn()
CGAL::orientation()
CGAL::right_turn()

Functions

template<typename Kernel >
bool CGAL::collinear (const CGAL::Point_2< Kernel > &p, const CGAL::Point_2< Kernel > &q, const CGAL::Point_2< Kernel > &r)
 returns true, iff p, q, and r are collinear. More...
 
template<typename Kernel >
bool CGAL::collinear (const CGAL::Point_3< Kernel > &p, const CGAL::Point_3< Kernel > &q, const CGAL::Point_3< Kernel > &r)
 returns true, iff p, q, and r are collinear. More...
 

Function Documentation

◆ collinear() [1/2]

template<typename Kernel >
bool CGAL::collinear ( const CGAL::Point_2< Kernel > &  p,
const CGAL::Point_2< Kernel > &  q,
const CGAL::Point_2< Kernel > &  r 
)

#include <CGAL/Kernel/global_functions.h>

returns true, iff p, q, and r are collinear.

Examples
Kernel_23/exact.cpp, and Kernel_23/surprising.cpp.

◆ collinear() [2/2]

template<typename Kernel >
bool CGAL::collinear ( const CGAL::Point_3< Kernel > &  p,
const CGAL::Point_3< Kernel > &  q,
const CGAL::Point_3< Kernel > &  r 
)

#include <CGAL/Kernel/global_functions.h>

returns true, iff p, q, and r are collinear.