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