33#ifdef OGDF_INCLUDE_CGAL
35# include <CGAL/Aff_transformation_2.h>
36# include <CGAL/Direction_2.h>
37# include <CGAL/aff_transformation_tags.h>
43template<
typename kernel>
44using Direction_t = CGAL::Direction_2<kernel>;
46template<
typename kernel>
47inline Direction_t<kernel> rotate(
const Direction_t<kernel>& v,
const double angle) {
48 CGAL::Aff_transformation_2<kernel> rotatation(CGAL::ROTATION, std::sin(angle), std::cos(angle));
49 return std::move(rotatation(v));
The namespace for all OGDF objects.