- Deprecate operator()(T1, T2, T3, T4) of Kernel::CompareSquaredDistance_[23]
and move it to Kernel::CompareDistance_[23]. - Add CGAL::compare_distance(T1, T2, T3, T4). (Test suite OK.)
This commit is contained in:
@@ -409,6 +409,13 @@ namespace CartesianKernelFunctors {
|
||||
{
|
||||
return cmp_dist_to_pointC2(p.x(), p.y(), q.x(), q.y(), r.x(), r.y());
|
||||
}
|
||||
|
||||
template <class T1, class T2, class T3, class T4>
|
||||
result_type
|
||||
operator()(const T1& p, const T2& q, const T3& r, const T4& s) const
|
||||
{
|
||||
return CGAL_NTS compare(squared_distance(p, q), squared_distance(r, s));
|
||||
}
|
||||
};
|
||||
|
||||
template <typename K>
|
||||
@@ -425,6 +432,13 @@ namespace CartesianKernelFunctors {
|
||||
q.x(), q.y(), q.z(),
|
||||
r.x(), r.y(), r.z());
|
||||
}
|
||||
|
||||
template <class T1, class T2, class T3, class T4>
|
||||
result_type
|
||||
operator()(const T1& p, const T2& q, const T3& r, const T4& s) const
|
||||
{
|
||||
return CGAL_NTS compare(squared_distance(p, q), squared_distance(r, s));
|
||||
}
|
||||
};
|
||||
|
||||
template <typename K>
|
||||
|
||||
Reference in New Issue
Block a user