mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-20 23:36:20 +00:00
Use std::lexicographical_compare in Point_d_4d_Less
This commit is contained in:
committed by
Thomas Krijnen
parent
9d956f18b7
commit
eacff93945
@@ -120,11 +120,9 @@ using plane_map = std::map<typename Kernel::Plane_3, typename Kernel::Plane_3, P
|
|||||||
struct Point_d_4d_Less {
|
struct Point_d_4d_Less {
|
||||||
using Point_d = CGAL::Epick_d<CGAL::Dimension_tag<4>>::Point_d;
|
using Point_d = CGAL::Epick_d<CGAL::Dimension_tag<4>>::Point_d;
|
||||||
bool operator()(const Point_d& a, const Point_d& b) const {
|
bool operator()(const Point_d& a, const Point_d& b) const {
|
||||||
for (int i = 0; i < 4; ++i) {
|
return std::lexicographical_compare(
|
||||||
if (a[i] < b[i]) return true;
|
a.cartesian_begin(), a.cartesian_end(),
|
||||||
if (b[i] < a[i]) return false;
|
b.cartesian_begin(), b.cartesian_end());
|
||||||
}
|
|
||||||
return false;
|
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user