Move Compare_squared_distance_[23] from Cartesian and Homogeneous to
Kernel_23: their implementation were identical.
This commit is contained in:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user