mirror of https://github.com/CGAL/cgal
small fix on ambiguity
This commit is contained in:
parent
b7f1abdac2
commit
f1bd30929d
|
|
@ -162,7 +162,7 @@ namespace CGAL {
|
|||
}
|
||||
|
||||
|
||||
template< class SK>
|
||||
template< class SK >
|
||||
inline
|
||||
Sign
|
||||
compute_sign_of_cross_product(const typename SK::Root_of_2 &x1,
|
||||
|
|
@ -180,24 +180,6 @@ namespace CGAL {
|
|||
return sign(cz);
|
||||
}
|
||||
|
||||
template< class SK>
|
||||
inline
|
||||
Sign
|
||||
compute_sign_of_cross_product(const typename SK::FT &x1,
|
||||
const typename SK::FT &y1,
|
||||
const typename SK::FT &z1,
|
||||
const typename SK::FT &x2,
|
||||
const typename SK::FT &y2,
|
||||
const typename SK::FT &z2) {
|
||||
typedef typename SK::FT FT;
|
||||
const FT cx = y1 * z2 - z1 * y2;
|
||||
const FT cy = z1 * x2 - x1 * z2;
|
||||
const FT cz = x1 * y2 - y1 * x2;
|
||||
if(!is_zero(cx)) return sign(cx);
|
||||
if(!is_zero(cy)) return sign(cy);
|
||||
return sign(cz);
|
||||
}
|
||||
|
||||
template< class SK>
|
||||
inline
|
||||
Sign
|
||||
|
|
|
|||
Loading…
Reference in New Issue