mirror of https://github.com/CGAL/cgal
Replace two std::sqrt(…); with using std::sqrt; ……… sqrt(…); Fix Yade compilation.
This commit is contained in:
parent
23beca416c
commit
e94156d7b5
|
|
@ -575,7 +575,8 @@ assemble_covariance_matrix_3(InputIterator first,
|
|||
transformation << t[0].x(), t[1].x(), 0.0,
|
||||
t[0].y(), t[1].y(), 0.0,
|
||||
t[0].z(), t[1].z(), 1.0;
|
||||
FT length = std::sqrt(t.squared_length());
|
||||
using std::sqrt;
|
||||
FT length = sqrt(t.squared_length());
|
||||
|
||||
// skip zero measure primitives
|
||||
if(length == (FT)0.0)
|
||||
|
|
|
|||
|
|
@ -449,7 +449,8 @@ centroid(InputIterator begin,
|
|||
it++)
|
||||
{
|
||||
const Segment& s = *it;
|
||||
FT length = std::sqrt(s.squared_length());
|
||||
using std::sqrt;
|
||||
FT length = sqrt(s.squared_length());
|
||||
Point c = CGAL::midpoint(s.source(),s.target());
|
||||
// Point c = K().construct_midpoint_3_object()(s[0],s[1]);
|
||||
//Point c = Point((s[0][0] + s[1][0])/2.0, (s[0][1] + s[1][1])/2.0, (s[0][2] + s[1][2])/2.0);
|
||||
|
|
|
|||
Loading…
Reference in New Issue