mirror of https://github.com/CGAL/cgal
Comment out compare_deltax_deltay() predicate, as it is undocumented,
unused in CGAL, and does not have corresponding functor.
This commit is contained in:
parent
78036ff1b5
commit
e208720200
|
|
@ -37,6 +37,8 @@ equal_xy(const PointC2<K> &p, const PointC2<K> &q)
|
||||||
return p.x() == q.x() && p.y() == q.y();
|
return p.x() == q.x() && p.y() == q.y();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// Unused, undocumented, un-functorized.
|
||||||
template < class K >
|
template < class K >
|
||||||
inline
|
inline
|
||||||
Comparison_result
|
Comparison_result
|
||||||
|
|
@ -47,6 +49,7 @@ compare_deltax_deltay(const PointC2<K>& p,
|
||||||
{
|
{
|
||||||
return compare_deltax_deltayC2(p.x(), q.x(), r.y(), s.y());
|
return compare_deltax_deltayC2(p.x(), q.x(), r.y(), s.y());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
template < class K >
|
template < class K >
|
||||||
inline
|
inline
|
||||||
|
|
|
||||||
|
|
@ -380,6 +380,8 @@ compare_slopesC2(const FT &s1_src_x, const FT &s1_src_y, const FT &s1_tgt_x,
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// Unused, undocumented, un-functorized.
|
||||||
template < class FT >
|
template < class FT >
|
||||||
inline
|
inline
|
||||||
typename Compare<FT>::result_type
|
typename Compare<FT>::result_type
|
||||||
|
|
@ -388,6 +390,7 @@ compare_deltax_deltayC2(const FT &px, const FT &qx,
|
||||||
{
|
{
|
||||||
return CGAL_NTS compare(CGAL_NTS abs(px-qx), CGAL_NTS abs(ry-sy));
|
return CGAL_NTS compare(CGAL_NTS abs(px-qx), CGAL_NTS abs(ry-sy));
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
template < class FT >
|
template < class FT >
|
||||||
inline
|
inline
|
||||||
|
|
|
||||||
|
|
@ -86,6 +86,8 @@ _where_wrt_L_wedge( const PointH2<R>& p, const PointH2<R>& q )
|
||||||
return ON_ORIENTED_BOUNDARY;
|
return ON_ORIENTED_BOUNDARY;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// Unused, undocumented, un-functorized.
|
||||||
template < class R >
|
template < class R >
|
||||||
CGAL_KERNEL_MEDIUM_INLINE
|
CGAL_KERNEL_MEDIUM_INLINE
|
||||||
Comparison_result
|
Comparison_result
|
||||||
|
|
@ -98,6 +100,7 @@ compare_deltax_deltay(const PointH2<R>& p,
|
||||||
CGAL_NTS abs(p.hx()*q.hw() - q.hx()*p.hw()) * r.hw()*s.hw(),
|
CGAL_NTS abs(p.hx()*q.hw() - q.hx()*p.hw()) * r.hw()*s.hw(),
|
||||||
CGAL_NTS abs(r.hy()*s.hw() - s.hy()*r.hw()) * p.hw()*q.hw());
|
CGAL_NTS abs(r.hy()*s.hw() - s.hy()*r.hw()) * p.hw()*q.hw());
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
CGAL_END_NAMESPACE
|
CGAL_END_NAMESPACE
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -41,12 +41,15 @@ _test_further_fct_point_2(const R& )
|
||||||
CGAL::Point_2<R> p8( RT(24), RT( 9), RT(3) ); // ( 8, 3)
|
CGAL::Point_2<R> p8( RT(24), RT( 9), RT(3) ); // ( 8, 3)
|
||||||
CGAL::Point_2<R> p9( RT( 6), RT(10), RT(1) ); // ( 6,10)
|
CGAL::Point_2<R> p9( RT( 6), RT(10), RT(1) ); // ( 6,10)
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
// This function is not documented, not used in CGAL, and has no functor.
|
||||||
assert( CGAL::compare_deltax_deltay( p1, p4, p5, p6) == CGAL::SMALLER);
|
assert( CGAL::compare_deltax_deltay( p1, p4, p5, p6) == CGAL::SMALLER);
|
||||||
assert( CGAL::compare_deltax_deltay( p5, p6, p2, p1) == CGAL::LARGER);
|
assert( CGAL::compare_deltax_deltay( p5, p6, p2, p1) == CGAL::LARGER);
|
||||||
assert( CGAL::compare_deltax_deltay( p6, p5, p2, p1) == CGAL::LARGER);
|
assert( CGAL::compare_deltax_deltay( p6, p5, p2, p1) == CGAL::LARGER);
|
||||||
assert( CGAL::compare_deltax_deltay( p1, p2, p5, p6) == CGAL::SMALLER);
|
assert( CGAL::compare_deltax_deltay( p1, p2, p5, p6) == CGAL::SMALLER);
|
||||||
assert( CGAL::compare_deltax_deltay( p4, p3, p3, p7) == CGAL::EQUAL);
|
assert( CGAL::compare_deltax_deltay( p4, p3, p3, p7) == CGAL::EQUAL);
|
||||||
assert( CGAL::compare_deltax_deltay( p2, p3, p3, p6) == CGAL::EQUAL);
|
assert( CGAL::compare_deltax_deltay( p2, p3, p3, p6) == CGAL::EQUAL);
|
||||||
|
#endif
|
||||||
|
|
||||||
std::cout << '.';
|
std::cout << '.';
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue