BWAPI
|
00001 // Copyright (c) 2008 INRIA Sophia-Antipolis (France). 00002 // All rights reserved. 00003 // 00004 // This file is part of CGAL (www.cgal.org); you may redistribute it under 00005 // the terms of the Q Public License version 1.0. 00006 // See the file LICENSE.QPL distributed with CGAL. 00007 // 00008 // Licensees holding a valid commercial license may use this file in 00009 // accordance with the commercial license agreement provided with the software. 00010 // 00011 // This file is provided AS IS with NO WARRANTY OF ANY KIND, INCLUDING THE 00012 // WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. 00013 // 00014 // $URL: svn+ssh://scm.gforge.inria.fr/svn/cgal/branches/CGAL-3.5-branch/Circular_kernel_3/include/CGAL/Circular_kernel_3/internal_functions_on_line_3.h $ 00015 // $Id: internal_functions_on_line_3.h 44381 2008-07-24 09:26:28Z pmachado $ 00016 // 00017 // Author(s) : Monique Teillaud, Sylvain Pion, Pedro Machado 00018 00019 // Partially supported by the IST Programme of the EU as a 00020 // STREP (FET Open) Project under Contract No IST-006413 00021 // (ACS -- Algorithms for Complex Shapes) 00022 00023 #ifndef CGAL_SPHERICAL_KERNEL_PREDICATES_ON_LINE_3_H 00024 #define CGAL_SPHERICAL_KERNEL_PREDICATES_ON_LINE_3_H 00025 00026 namespace CGAL { 00027 namespace SphericalFunctors { 00028 00029 template < class SK > 00030 typename SK::Line_3 00031 construct_line_3(const typename SK::Polynomials_for_line_3 &eq) 00032 { 00033 typedef typename SK::Line_3 Line_3; 00034 typedef typename SK::Point_3 Point_3; 00035 typedef typename SK::Vector_3 Vector_3; 00036 return Line_3(Point_3(eq.b1(),eq.b2(),eq.b3()), 00037 Vector_3(eq.a1(),eq.a2(),eq.a3())); 00038 } 00039 00040 }//SphericalFunctors 00041 }//CGAL 00042 00043 #endif //CGAL_SPHERICAL_KERNEL_PREDICATES_ON_LINE_3_H