Added CGAL_NTS namespace.

This commit is contained in:
Geert-Jan Giezeman 2000-06-30 07:37:20 +00:00
parent 7d61330c3c
commit e6c0e75dfc
2 changed files with 9 additions and 9 deletions

View File

@ -1,4 +1,4 @@
// ============================================================================ // ======================================================================
// //
// Copyright (c) 1997 The CGAL Consortium // Copyright (c) 1997 The CGAL Consortium
// //
@ -6,7 +6,7 @@
// of the Computational Geometry Algorithms Library (CGAL). It is not // of the Computational Geometry Algorithms Library (CGAL). It is not
// intended for general use. // intended for general use.
// //
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------
// //
// release : $CGAL_Revision: CGAL-0.9-I-06 $ // release : $CGAL_Revision: CGAL-0.9-I-06 $
// release_date : $CGAL_Date: 1998/03/11 $ // release_date : $CGAL_Date: 1998/03/11 $
@ -19,7 +19,7 @@
// //
// coordinator : Utrecht University // coordinator : Utrecht University
// //
// ============================================================================ // ======================================================================
#include <CGAL/Polygon_2_algorithms.h> #include <CGAL/Polygon_2_algorithms.h>
@ -583,7 +583,7 @@ bool Simplicity_test_2<ForwardIterator, Traits>::consecutive_edges(
int e1, int e2) const int e1, int e2) const
{ {
int n = NumberOfVertices(); int n = NumberOfVertices();
return ( abs(e2-e1) == 1 || abs(e2-e1) == n-1 ); return ( CGAL_NTS abs(e2-e1) == 1 || CGAL_NTS abs(e2-e1) == n-1 );
} }
//-----------------------------------------------------------------------// //-----------------------------------------------------------------------//

View File

@ -1,4 +1,4 @@
// ============================================================================ // ======================================================================
// //
// Copyright (c) 1997 The CGAL Consortium // Copyright (c) 1997 The CGAL Consortium
// //
@ -6,7 +6,7 @@
// of the Computational Geometry Algorithms Library (CGAL). It is not // of the Computational Geometry Algorithms Library (CGAL). It is not
// intended for general use. // intended for general use.
// //
// ---------------------------------------------------------------------------- // ----------------------------------------------------------------------
// //
// release : $CGAL_Revision: CGAL-0.9-I-06 $ // release : $CGAL_Revision: CGAL-0.9-I-06 $
// release_date : $CGAL_Date: 1998/03/11 $ // release_date : $CGAL_Date: 1998/03/11 $
@ -19,7 +19,7 @@
// //
// coordinator : Utrecht University // coordinator : Utrecht University
// //
// ============================================================================ // ======================================================================
#ifndef CGAL_POLYGON_TRAITS_2_H #ifndef CGAL_POLYGON_TRAITS_2_H
#define CGAL_POLYGON_TRAITS_2_H #define CGAL_POLYGON_TRAITS_2_H
@ -85,12 +85,12 @@ class Polygon_traits_2_aux : public _R
int sign(const FT& x) const int sign(const FT& x) const
{ {
return ::CGAL::sign(x); return CGAL_NTS sign(x);
} }
bool is_negative(const FT& x) const bool is_negative(const FT& x) const
{ {
return ::CGAL::is_negative(x); return CGAL_NTS is_negative(x);
} }
bool do_intersect(const Point_2& p1, bool do_intersect(const Point_2& p1,