// Boost.Geometry (aka GGL, Generic Geometry Library) // Copyright (c) 2013 Barend Gehrels, Amsterdam, the Netherlands. // Copyright (c) 2013 Bruno Lalande, Paris, France. // Copyright (c) 2013 Mateusz Loskot, London, UK. // Copyright (c) 2013 Adam Wulkiewicz, Lodz, Poland. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) #ifndef BOOST_GEOMETRY_POLICIES_ROBUSTNESS_NO_RESCALE_POLICY_HPP #define BOOST_GEOMETRY_POLICIES_ROBUSTNESS_NO_RESCALE_POLICY_HPP #include #include #include #include #include namespace boost { namespace geometry { #ifndef DOXYGEN_NO_DETAIL namespace detail { // Probably this will be moved out of namespace detail struct no_rescale_policy { static bool const enabled = false; // We don't rescale but return the reference of the input template inline Value const& apply(Value const& value) const { return value; } }; } // namespace detail #endif // Implement meta-functions for this policy template struct robust_point_type { // The point itself typedef Point type; }; template struct segment_ratio_type { // Define a segment_ratio defined on coordinate type, e.g. // int/int or float/float typedef typename geometry::coordinate_type::type coordinate_type; typedef segment_ratio type; }; }} // namespace boost::geometry #endif // BOOST_GEOMETRY_POLICIES_ROBUSTNESS_NO_RESCALE_POLICY_HPP