CGAL 5.1 - 2D and 3D Linear Geometry Kernel

See also
CGAL::compare_distance_to_point()
CGAL::compare_signed_distance_to_line()
CGAL::compare_signed_distance_to_plane()
CGAL::has_larger_distance_to_point()
CGAL::has_larger_signed_distance_to_line()
CGAL::has_larger_signed_distance_to_plane()
CGAL::has_smaller_signed_distance_to_line()
CGAL::has_smaller_signed_distance_to_plane()

Functions

template<typename Kernel >
bool CGAL::has_smaller_distance_to_point (const CGAL::Point_2< Kernel > &p, const CGAL::Point_2< Kernel > &q, const CGAL::Point_2< Kernel > &r)
 returns true iff the distance between q and p is smaller than the distance between r and p. More...
 
template<typename Kernel >
bool CGAL::has_smaller_distance_to_point (const CGAL::Point_3< Kernel > &p, const CGAL::Point_3< Kernel > &q, const CGAL::Point_3< Kernel > &r)
 returns true iff the distance between q and p is smaller than the distance between r and p. More...
 

Function Documentation

◆ has_smaller_distance_to_point() [1/2]

template<typename Kernel >
bool CGAL::has_smaller_distance_to_point ( 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 the distance between q and p is smaller than the distance between r and p.

◆ has_smaller_distance_to_point() [2/2]

template<typename Kernel >
bool CGAL::has_smaller_distance_to_point ( 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 the distance between q and p is smaller than the distance between r and p.