mirror of https://github.com/CGAL/cgal
Added Compare_squared_radius_3
This commit is contained in:
parent
65faa8db11
commit
029d9416cc
|
|
@ -470,6 +470,46 @@ namespace CartesianKernelFunctors {
|
|||
}
|
||||
};
|
||||
|
||||
|
||||
template <typename K>
|
||||
class Compare_squared_radius_3
|
||||
{
|
||||
typedef typename K::Point_3 Point_3;
|
||||
typedef typename K::FT FT;
|
||||
public:
|
||||
typedef typename K::Comparison_result result_type;
|
||||
typedef Arity_tag< 4 > Arity;
|
||||
|
||||
result_type
|
||||
operator()(const Point_3& p, const Point_3& q, const Point_3& r, const Point_3& s, const FT& ft) const
|
||||
{
|
||||
return CGAL_NTS compare(squared_radiusC3(p.x(), p.y(), p.z(),
|
||||
q.x(), q.y(), q.z(),
|
||||
r.x(), r.y(), r.z(),
|
||||
s.x(), s.y(), s.z() ),
|
||||
ft);
|
||||
}
|
||||
|
||||
result_type
|
||||
operator()(const Point_3& p, const Point_3& q, const Point_3& r, const FT& ft) const
|
||||
{
|
||||
return CGAL_NTS compare(squared_radiusC3(p.x(), p.y(), p.z(),
|
||||
q.x(), q.y(), q.z(),
|
||||
r.x(), r.y(), r.z()),
|
||||
ft);
|
||||
}
|
||||
|
||||
result_type
|
||||
operator()(const Point_3& p, const Point_3& q, const FT& ft) const
|
||||
{
|
||||
return CGAL_NTS compare(squared_radiusC3(p.x(), p.y(), p.z(),
|
||||
q.x(), q.y(), q.z() ),
|
||||
ft);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
|
||||
template <typename K>
|
||||
class Compare_slope_2
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue