\begin{ccRefFunction}{compare_distance} \ccFunction{Comparison_result compare_distance(const Type1& obj1, const Type2& obj2, const Type3& obj3);} {compares the distance between \ccc{obj1} and \ccc{obj2} to the distance between \ccc{obj1} and \ccc{obj3}} \ccFunction{Comparison_result compare_distance(const Type1& obj1, const Type2& obj2, const Type3& obj3, const Type4& obj4);} {compares the distance between \ccc{obj1} and \ccc{obj2} to the distance between \ccc{obj3} and \ccc{obj4}} for all tuples of types \ccStyle{Type1}, \ccStyle{Type2}, \ccStyle{Type3} and \ccStyle{Type4} in the following set of 2D types: \begin{itemize}\ccTexHtml{\itemsep0pt\topsep0pt\partopsep0pt\parskip0pt\parsep0pt}{} \item \ccStyle{Kernel::Point_2} \item \ccStyle{Kernel::Line_2} \item \ccStyle{Kernel::Ray_2} \item \ccStyle{Kernel::Segment_2} \item \ccStyle{Kernel::Triangle_2} \end{itemize} or in the following set of 3D types: \begin{itemize}\ccTexHtml{\itemsep0pt\topsep0pt\partopsep0pt\parskip0pt\parsep0pt}{} \item \ccStyle{Kernel::Point_3} \item \ccStyle{Kernel::Line_3} \item \ccStyle{Kernel::Ray_3} \item \ccStyle{Kernel::Segment_3} \item \ccStyle{Kernel::Plane_3} \end{itemize} \ccSeeAlso \ccRefIdfierPage{CGAL::compare_squared_distance} \\ \ccRefIdfierPage{CGAL::compare_distance_to_point}\\ \ccRefIdfierPage{CGAL::compare_signed_distance_to_line} \\ \ccRefIdfierPage{CGAL::compare_signed_distance_to_plane} \\ \ccRefIdfierPage{CGAL::has_larger_distance_to_point} \\ \ccRefIdfierPage{CGAL::has_larger_signed_distance_to_line} \\ \ccRefIdfierPage{CGAL::has_larger_signed_distance_to_plane} \\ \ccRefIdfierPage{CGAL::has_smaller_distance_to_point} \\ \ccRefIdfierPage{CGAL::has_smaller_signed_distance_to_line} \\ \ccRefIdfierPage{CGAL::has_smaller_signed_distance_to_plane} \\ \end{ccRefFunction}