33#ifdef OGDF_INCLUDE_CGAL
38# include <CGAL/Line_2.h>
46template<
typename kernel>
47using Line_t = CGAL::Line_2<kernel>;
49template<
typename kernel>
51 return turn(
l1.to_vector(),
l2.to_vector());
54template<
typename kernel>
59template<
typename kernel>
64template<
typename kernel>
66 return turn(
l.to_vector(), p -
l.point(0));
69template<
typename kernel>
74template<
typename kernel>
79template<
typename kernel>
83 auto result = CGAL::intersection(
l1,
l2);
86 std::numeric_limits<unsigned int>::max());
91 auto s = boost::get<Line_t<kernel>>(&*result);
92 intersection = s->point(0);
94 intersection = *boost::get<Point_t<kernel>>(&*result);
#define OGDF_ASSERT(expr)
Assert condition expr. See doc/build.md for more information.
static MultilevelBuilder * getDoubleFactoredZeroAdjustedMerger()
The namespace for all OGDF objects.