mirror of https://github.com/CGAL/cgal
rm function make_root_of_2(const NT &a, int b_, const NT &c)
use: make_root_of_2(const NT &a, const NT& b_, const NT &c)
This commit is contained in:
parent
b54e132e25
commit
e8a393dcd2
|
|
@ -17,8 +17,8 @@
|
|||
// and a STREP (FET Open) Project under Contract No IST-006413
|
||||
// (ACS -- Algorithms for Complex Shapes)
|
||||
//
|
||||
// $URL: $
|
||||
// $Id: $
|
||||
// $URL$
|
||||
// $Id$
|
||||
//
|
||||
// Author(s) : Monique Teillaud <Monique.Teillaud@sophia.inria.fr>
|
||||
// Sylvain Pion <Sylvain.Pion@sophia.inria.fr>
|
||||
|
|
@ -289,9 +289,9 @@ namespace CGAL {
|
|||
CGAL::square(dz);
|
||||
const FT sq_r1r2 = s1.squared_radius()*s2.squared_radius();
|
||||
const FT sq_r1_p_sq_r2 = s1.squared_radius() + s2.squared_radius();
|
||||
Root_of_2 left_1 = make_root_of_2(d2,-2,sq_r1r2);
|
||||
Root_of_2 left_1 = make_root_of_2(d2,FT(-2),sq_r1r2);
|
||||
if(left_1 > sq_r1_p_sq_r2) return false;
|
||||
Root_of_2 left_2 = make_root_of_2(d2,2,sq_r1r2);
|
||||
Root_of_2 left_2 = make_root_of_2(d2,FT(2),sq_r1r2);
|
||||
if(left_2 < sq_r1_p_sq_r2) return false;
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -162,16 +162,6 @@ make_root_of_2(const NT &a, const NT &b, const NT &c,const bool smaller)
|
|||
return make_root_of_2(a,b,c,smaller);
|
||||
}
|
||||
|
||||
template < class NT >
|
||||
inline
|
||||
typename Root_of_traits< NT >::Root_of_2
|
||||
make_root_of_2(const NT &a, int b_, const NT &c)
|
||||
{
|
||||
NT b(b_);
|
||||
typename Root_of_traits<NT>::Make_root_of_2 make_root_of_2;
|
||||
return make_root_of_2(a,b,c);
|
||||
}
|
||||
|
||||
CGAL_END_NAMESPACE
|
||||
|
||||
#endif // CGAL_ROOT_OF_TRAITS_H
|
||||
|
|
|
|||
Loading…
Reference in New Issue