// Copyright (c) 1997-2004 Utrecht University (The Netherlands), // ETH Zurich (Switzerland), Freie Universitaet Berlin (Germany), // INRIA Sophia-Antipolis (France), Martin-Luther-University Halle-Wittenberg // (Germany), Max-Planck-Institute Saarbruecken (Germany), RISC Linz (Austria), // and Tel-Aviv University (Israel). All rights reserved. // // This file is part of CGAL (www.cgal.org); you can redistribute it and/or // modify it under the terms of the GNU Lesser General Public License as // published by the Free Software Foundation; version 2.1 of the License. // See the file LICENSE.LGPL 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) : Geert-Jan Giezeman #ifndef CGAL_INTERSECTION_3_1_H #define CGAL_INTERSECTION_3_1_H #include #include CGAL_BEGIN_NAMESPACE template Object intersection(const Plane_3 &plane1, const Plane_3&plane2); template inline bool do_intersect(const Plane_3 &plane1, const Plane_3&plane2) { return ! intersection(plane1, plane2).is_empty(); } template Object intersection(const Plane_3 &plane1, const Plane_3&plane2, const Plane_3&plane3); template inline bool do_intersect(const Plane_3 &plane1, const Plane_3&plane2, const Plane_3&plane3) { return ! intersection(plane1, plane2, plane3).is_empty(); } template Object intersection(const Plane_3 &plane, const Line_3&line); template inline Object intersection(const Line_3&line, const Plane_3 &plane) { return intersection(plane,line); } template bool do_intersect(const Plane_3 &p2, const Line_3 &p1); template inline bool do_intersect(const Line_3 &p1, const Plane_3 &p2) { return do_intersect(p2,p1); } template Object intersection(const Plane_3 &plane, const Ray_3&ray); template inline Object intersection(const Ray_3&ray, const Plane_3 &plane) { return intersection(plane,ray); } template bool do_intersect(const Plane_3 &p1, const Ray_3 &p2); template inline bool do_intersect( const Ray_3 &p1, const Plane_3 &p2) { return do_intersect(p2,p1); } template Object intersection(const Plane_3 &plane, const Segment_3&seg); template inline Object intersection(const Segment_3&seg, const Plane_3 &plane) { return intersection(plane,seg); } template bool do_intersect(const Plane_3 &p1, const Segment_3 &p2); template inline bool do_intersect(const Segment_3 &p1, const Plane_3 &p2) { return do_intersect(p2,p1); } template Object intersection(const Line_3 &line, const Bbox_3 &box) ; template inline Object intersection(const Bbox_3 &box, const Line_3 &line) { return intersection(line, box); } template Object intersection(const Ray_3 &ray, const Bbox_3 &box) ; template inline Object intersection(const Bbox_3 &box, const Ray_3 &ray) { return intersection(ray, box); } template Object intersection(const Segment_3 &seg, const Bbox_3 &box) ; template inline Object intersection(const Bbox_3 &box, const Segment_3 &seg) { return intersection(seg, box); } template Object intersection(const Line_3 &line, const Iso_cuboid_3 &box) ; template inline Object intersection(const Iso_cuboid_3 &box, const Line_3 &line) { return intersection(line, box); } template Object intersection(const Ray_3 &ray, const Iso_cuboid_3 &box) ; template inline Object intersection(const Iso_cuboid_3 &box, const Ray_3 &ray) { return intersection(ray, box); } template Object intersection(const Segment_3 &seg, const Iso_cuboid_3 &box) ; template inline Object intersection(const Iso_cuboid_3 &box, const Segment_3 &seg) { return intersection(seg, box); } template Object intersection(const Iso_cuboid_3 &box1, const Iso_cuboid_3 &box2) ; CGAL_END_NAMESPACE #include #endif // CGAL_INTERSECTION_3_1_H