// ====================================================================== // // Copyright (c) 2000 The CGAL Consortium // // This software and related documentation is part of an INTERNAL release // of the Computational Geometry Algorithms Library (CGAL). It is not // intended for general use. // // ---------------------------------------------------------------------- // // release : // release_date : // // file : include/CGAL/Cartesian/line_constructions_2.h // revision : $Revision$ // revision_date : $Date$ // author(s) : Herve Bronnimann // coordinator : INRIA Sophia-Antipolis (Mariette.Yvinec@sophia.inria.fr) // // ====================================================================== #ifndef CGAL_CARTESIAN_LINE_CONSTRUCTIONS_2_H #define CGAL_CARTESIAN_LINE_CONSTRUCTIONS_2_H #include #include CGAL_BEGIN_NAMESPACE template < class R > inline LineC2 line_from_points(const PointC2 &p, const PointC2 &q) { typename R::FT a, b, c; line_from_pointsC2(p.x(), p.y(), q.x(), q.y(), a, b, c); return LineC2(a, b, c); } template < class R > inline LineC2 line_from_point_direction(const PointC2 &p, const DirectionC2 &d) { typename R::FT a, b, c; line_from_point_directionC2(p.x(), p.y(), d.dx(), d.dy(), a, b, c); return LineC2(a, b, c); } template < class R > inline LineC2 bisector(const PointC2 &p, const PointC2 &q) { typename R::FT a, b, c; bisector_of_pointsC2(p.x(), p.y(), q.x(), q.y(), a, b, c); return LineC2(a, b, c); } template < class R > inline LineC2 perpendicular_through_point(const LineC2 &l, const PointC2 &p) { typename R::FT a, b, c; perpendicular_through_pointC2(l.a(), l.b(), p.x(), p.y(), a, b, c); return LineC2(a, b, c); } CGAL_END_NAMESPACE #endif // CGAL_CARTESIAN_LINE_CONSTRUCTIONS_2_H