SFCGAL 2.3.0
SFCGAL::detail::ComparePoints Struct Reference

Comparator for sorting points lexicographically. More...

Public Member Functions

auto operator() (const CGAL::Point_2< Kernel > &lhs, const CGAL::Point_2< Kernel > &rhs) const -> bool
 Compare 2D points lexicographically.
auto operator() (const CGAL::Point_3< Kernel > &lhs, const CGAL::Point_3< Kernel > &rhs) const -> bool
 Compare 3D points lexicographically.

Detailed Description

Comparator for sorting points lexicographically.

Member Function Documentation

◆ operator()() [1/2]

auto SFCGAL::detail::ComparePoints::operator() ( const CGAL::Point_2< Kernel > & lhs,
const CGAL::Point_2< Kernel > & rhs ) const -> bool
inline

Compare 2D points lexicographically.

Parameters
lhsLeft-hand side point
rhsRight-hand side point
Returns
True if lhs is lexicographically smaller than rhs

◆ operator()() [2/2]

auto SFCGAL::detail::ComparePoints::operator() ( const CGAL::Point_3< Kernel > & lhs,
const CGAL::Point_3< Kernel > & rhs ) const -> bool
inline

Compare 3D points lexicographically.

Parameters
lhsLeft-hand side point
rhsRight-hand side point
Returns
True if lhs is lexicographically smaller than rhs