Move Compare_squared_distance_[23] from Cartesian and Homogeneous to

Kernel_23: their implementation were identical.
This commit is contained in:
Laurent Rineau
2010-06-30 10:04:49 +00:00
parent d60f7b365e
commit a97730f073
3 changed files with 36 additions and 73 deletions
@@ -411,21 +411,6 @@ namespace CartesianKernelFunctors {
}
};
template <typename K>
class Compare_squared_distance_2
{
typedef typename K::Point_2 Point_2;
typedef typename K::FT FT;
public:
typedef typename K::Comparison_result result_type;
result_type
operator()(const Point_2& p, const Point_2& q, const FT& d2) const
{
return CGAL_NTS compare(squared_distance(p, q), d2);
}
};
template <typename K>
class Compare_distance_3
{
@@ -442,28 +427,6 @@ namespace CartesianKernelFunctors {
}
};
template <typename K>
class Compare_squared_distance_3
{
typedef typename K::Point_3 Point_3;
typedef typename K::FT FT;
public:
typedef typename K::Comparison_result result_type;
result_type
operator()(const Point_3& p, const Point_3& q, const FT& d2) const
{
return CGAL_NTS compare(squared_distance(p, q), d2);
}
result_type
operator()(const Point_3& p, const Point_3& q, const Point_3& r, const Point_3& s) const
{
return CGAL_NTS compare(squared_distance(p, q), squared_distance(r, s));
}
};
template <typename K>
class Compare_squared_radius_3
{