// Copyright (c) 2000 Max-Planck-Institute Saarbruecken (Germany). // All rights reserved. // // This file is part of CGAL (www.cgal.org). // // $URL: https://github.com/CGAL/cgal/blob/v5.1/Partition_2/include/CGAL/polygon_function_objects.h $ // $Id: polygon_function_objects.h 0779373 2020-03-26T13:31:46+01:00 Sébastien Loriot // SPDX-License-Identifier: GPL-3.0-or-later OR LicenseRef-Commercial // // // Author(s) : Susan Hert #ifndef CGAL_POLYGON_FUNCTION_OBJECTS_H #define CGAL_POLYGON_FUNCTION_OBJECTS_H #include #include namespace CGAL { template class Is_vacuously_valid { public: Is_vacuously_valid(Traits ) {} template bool operator()(ForwardIterator, ForwardIterator) { return true; } }; template class Is_convex_2 { public: Is_convex_2(const Traits& t): traits(t) {} template bool operator()(ForwardIterator first, ForwardIterator last) { return is_convex_2(first, last, traits); } private: const Traits& traits; }; template class Is_y_monotone_2 { public: Is_y_monotone_2(const Traits& t): traits(t) {} template bool operator()(ForwardIterator first, ForwardIterator last) { return is_y_monotone_2(first, last, traits); } private: const Traits& traits; }; } #endif // CGAL_POLYGON_FUNCTION_OBJECTS_H