Use CGAL_AND

This commit is contained in:
Mael Rouxel-Labbé 2025-01-16 10:42:21 +01:00
parent 1e46c44142
commit d2f6836a60
1 changed files with 2 additions and 3 deletions

View File

@ -142,7 +142,7 @@ inline
typename R::Boolean
operator==(const VectorC3<R> &v, const VectorC3<R> &w)
{
return w.x() == v.x() && w.y() == v.y() && w.z() == v.z();
return CGAL_AND_3(w.x() == v.x(), w.y() == v.y(), w.z() == v.z());
}
template < class R >
@ -158,8 +158,7 @@ inline
typename R::Boolean
operator==(const VectorC3<R> &v, const Null_vector &)
{
return CGAL_NTS is_zero(v.x()) && CGAL_NTS is_zero(v.y()) &&
CGAL_NTS is_zero(v.z());
return CGAL_AND_3(CGAL_NTS is_zero(v.x()), CGAL_NTS is_zero(v.y()), CGAL_NTS is_zero(v.z()));
}
template < class R >