cgal/Algebraic_kernel/include/CGAL/NT_extensions_Root_of/double.h

52 lines
1.5 KiB
C++

// Copyright (c) 2003-2006 INRIA Sophia-Antipolis (France).
// All rights reserved.
//
// This file is part of CGAL (www.cgal.org); you may redistribute it under
// the terms of the Q Public License version 1.0.
// See the file LICENSE.QPL distributed with CGAL.
//
// Licensees holding a valid commercial license may use this file in
// accordance with the commercial license agreement provided with the software.
//
// This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE
// WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE.
//
// $URL$
// $Id$
//
// Author(s) : Monique Teillaud, Sylvain Pion, Athanasios Kakargias
// Partially supported by the IST Programme of the EU as a Shared-cost
// RTD (FET Open) Project under Contract No IST-2000-26473
// (ECG - Effective Computational Geometry for Curves and Surfaces)
// and a STREP (FET Open) Project under Contract No IST-006413
// (ACS -- Algorithms for Complex Shapes)
#ifndef CGAL_ROOT_OF_DOUBLE_H
#define CGAL_ROOT_OF_DOUBLE_H
#include <CGAL/Root_of_2.h>
namespace CGAL {
inline
double
make_root_of_2(const double &a, const double &b,
const double &c, bool d)
{
return CGALi::make_root_of_2_sqrt(a,b,c,d);
}
template <>
struct Root_of_traits< double >
{
typedef double RootOf_1;
typedef double RootOf_2;
typedef double RootOf_3;
typedef double RootOf_4;
};
}
#endif // CGAL_ROOT_OF_DOUBLE_H