mirror of https://github.com/CGAL/cgal
Adding point_is_same().
This commit is contained in:
parent
eaf9fd70b7
commit
002f8ebbfc
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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));
|
||||
|
|
|
|||
|
|
@ -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
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue