Removed Sqrt.

Fixed demos for LEDA namespace (as suggested by Matthias).
This commit is contained in:
Michael Hoffmann 2002-03-25 15:05:01 +00:00
parent 28a9628528
commit 8dda8c5491
5 changed files with 11 additions and 11 deletions

View File

@ -55,6 +55,9 @@ using CGAL::all_furthest_neighbors_2;
using CGAL::cgalize;
using CGAL::RED;
#if defined(LEDA_NAMESPACE)
using leda::button_release_event;
#endif
typedef double FT;
typedef CGAL::Window_stream Window;

View File

@ -55,6 +55,10 @@ using std::copy;
using std::max;
typedef CGAL::Window_stream Window;
#if defined(LEDA_NAMESPACE)
using leda::button_release_event;
#endif
using std::vector;
using CGAL::Cartesian;
using CGAL::Random_access_circulator_from_container;

View File

@ -339,7 +339,7 @@ main(int argc, char* argv[])
<< " and " << number_of_piercing_points
<< " points." << endl;
#ifdef CGAL_PCENTER_CHECK
CGAL::Infinity_distance_2< K > dist;
CGAL::I_Infinity_distance_2< K > dist;
for (iterator i = input_points.begin(); i != input_points.end(); ++i) {
iterator j = centers.begin();
do {
@ -385,8 +385,8 @@ main(int argc, char* argv[])
#ifdef CGAL_PCENTER_CHECK
// check that there is at least one square with two points
// on opposite sides
CGAL::Signed_x_distance_2< K > xdist;
CGAL::Signed_y_distance_2< K > ydist;
CGAL::I_Signed_x_distance_2< K > xdist;
CGAL::I_Signed_y_distance_2< K > ydist;
bool boundary = false;
for (iterator i = centers.begin(); i != centers.end(); ++i) {
int left = 0, right = 0, bottom = 0, top = 0;

View File

@ -162,13 +162,6 @@ CGAL_END_NAMESPACE
#endif // CGAL_USE_LEDA
CGAL_BEGIN_NAMESPACE
template < class FT_ >
struct Sqrt : public CGAL_STD::binary_function< FT_, FT_, FT_ >
{
typedef Arity_tag< 1 > Arity;
typedef FT_ FT;
FT operator()(const FT& x) const { return CGAL_NTS sqrt(x); }
};
template < class K_ >
struct Extremal_polygon_perimeter_traits_2 {
typedef K_ K;

View File

@ -1 +1 @@
1.53 (05 February 2002)
1.54 (25 March 2002)