Adding point_is_same().

This commit is contained in:
Shai Hirsch 2002-05-03 10:40:57 +00:00
parent eaf9fd70b7
commit 002f8ebbfc
4 changed files with 19 additions and 1 deletions

View File

@ -481,6 +481,11 @@ public:
}
bool point_is_same(const Point_2 & p, const Point_2 & q) const
{
return is_same(p, q);
}
bool curve_is_same(const X_curve_2& cv1, const X_curve_2& cv2) const {
CGAL_precondition(is_x_monotone(cv1));
CGAL_precondition(is_x_monotone(cv2));

View File

@ -362,6 +362,10 @@ public:
}
}
bool point_is_same(const Point_2 & p, const Point_2 & q) const
{
return is_same(p, q);
}
bool curve_is_same(const X_curve_2& cv1, const X_curve_2& cv2) const {
CGAL_assertion(is_x_monotone(cv1));

View File

@ -331,7 +331,10 @@ public:
}
}
bool point_is_same(const Point_2 & p, const Point_2 & q) const
{
return is_same(p, q);
}
bool curve_is_same(const X_curve_2& cv1, const X_curve_2& cv2) const {
CGAL_assertion(is_x_monotone(cv1));

View File

@ -904,6 +904,12 @@ class Arr_segment_circle_traits
return false;
}
// Check whether the two curves are identical.
bool curve_is_same (const Point_2 & p, const Point_2 & q) const
{
return p == q;
}
// Check whether the two curves are identical.
bool curve_is_same (const X_curve_2& curve1, const X_curve_2& curve2) const
{