1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2013 Barend Gehrels, Amsterdam, the Netherlands.
4 // Copyright (c) 2013 Bruno Lalande, Paris, France.
5 // Copyright (c) 2013 Mateusz Loskot, London, UK.
6 // Copyright (c) 2013 Adam Wulkiewicz, Lodz, Poland.
8 // Use, modification and distribution is subject to the Boost Software License,
9 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
10 // http://www.boost.org/LICENSE_1_0.txt)
12 #ifndef BOOST_GEOMETRY_POLICIES_ROBUSTNESS_NO_RESCALE_POLICY_HPP
13 #define BOOST_GEOMETRY_POLICIES_ROBUSTNESS_NO_RESCALE_POLICY_HPP
17 #include <boost/geometry/core/coordinate_type.hpp>
18 #include <boost/geometry/policies/robustness/robust_point_type.hpp>
19 #include <boost/geometry/policies/robustness/segment_ratio.hpp>
21 namespace boost { namespace geometry
24 #ifndef DOXYGEN_NO_DETAIL
29 struct no_rescale_policy
31 static bool const enabled = false;
33 // We don't rescale but return the reference of the input
34 template <std::size_t Dimension, typename Value>
35 inline Value const& apply(Value const& value) const
45 // Implement meta-functions for this policy
46 template <typename Point>
47 struct robust_point_type<Point, detail::no_rescale_policy>
53 }} // namespace boost::geometry
55 #endif // BOOST_GEOMETRY_POLICIES_ROBUSTNESS_NO_RESCALE_POLICY_HPP