// Boost.Geometry // Copyright (c) 2021, Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Licensed under the Boost Software License version 1.0. // http://www.boost.org/users/license.html #ifndef BOOST_GEOMETRY_STRATEGIES_CENTROID_SPHERICAL_HPP #define BOOST_GEOMETRY_STRATEGIES_CENTROID_SPHERICAL_HPP #include #include #include namespace boost { namespace geometry { namespace strategies { namespace centroid { template < typename CalculationType = void > class spherical : public strategies::detail::spherical_base { using base_t = strategies::detail::spherical_base; public: spherical() = default; // TODO: Box and Segment should have proper strategies. template static auto centroid(Geometry const&, Point const&, std::enable_if_t < util::is_segment::value || util::is_box::value > * = nullptr) { return strategy::centroid::not_applicable_strategy(); } }; namespace services { template struct default_strategy { using type = strategies::centroid::spherical<>; }; } // namespace services }} // namespace strategies::centroid }} // namespace boost::geometry #endif // BOOST_GEOMETRY_STRATEGIES_CENTROID_SPHERICAL_HPP