Navigation: Up, Table of Contents, Bibliography, Index, Title Page

CGAL::compare_distance_to_point

Comparison_result
compare_distance_to_point ( Point_2<R> p,
Point_2<R> q,
Point_2<R> r)
compares the distances of points q and r to point p. returns SMALLER, iff q is closer to p than r, LARGER, iff r is closer to p than q, and EQUAL otherwise.

Comparison_result
compare_distance_to_point ( Point_3<R> p,
Point_3<R> q,
Point_3<R> r)
compares the distances of points q and r to point p. returns SMALLER, iff q is closer to p than r, LARGER, iff r is closer to p than q, and EQUAL otherwise.

See Also

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_distance_to_point
CGAL::has_smaller_signed_distance_to_line
CGAL::has_smaller_signed_distance_to_plane


Next: compare_xy
Navigation: Up, Table of Contents, Bibliography, Index, Title Page
www.cgal.org. Aug 13, 2001.