SFCGAL  2.3.0
Public Member Functions | List of all members
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. More...
 
auto operator() (const CGAL::Point_3< Kernel > &lhs, const CGAL::Point_3< Kernel > &rhs) const -> bool
 Compare 3D points lexicographically. More...
 

Detailed Description

Comparator for sorting points lexicographically.

Member Function Documentation

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
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