// Boost.Geometry // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands. // This file was modified by Oracle on 2015-2017. // Modifications copyright (c) 2015-2017 Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // 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_STRATEGIES_GEOGRAPHIC_THOMAS_HPP #define BOOST_GEOMETRY_STRATEGIES_GEOGRAPHIC_THOMAS_HPP #include #include namespace boost { namespace geometry { namespace strategy { namespace distance { /*! \brief The solution of the inverse problem of geodesics on latlong coordinates, Forsyth-Andoyer-Lambert type approximation with second order terms. \ingroup distance \tparam Spheroid The reference spheroid model \tparam CalculationType \tparam_calculation \author See - Technical Report: PAUL D. THOMAS, MATHEMATICAL MODELS FOR NAVIGATION SYSTEMS, 1965 http://www.dtic.mil/docs/citations/AD0627893 - Technical Report: PAUL D. THOMAS, SPHEROIDAL GEODESICS, REFERENCE SYSTEMS, AND LOCAL GEOMETRY, 1970 http://www.dtic.mil/docs/citations/AD703541 */ template < typename Spheroid = srs::spheroid, typename CalculationType = void > class thomas : public strategy::distance::geographic < strategy::thomas, Spheroid, CalculationType > { typedef strategy::distance::geographic < strategy::thomas, Spheroid, CalculationType > base_type; public : inline thomas() : base_type() {} explicit inline thomas(Spheroid const& spheroid) : base_type(spheroid) {} }; #ifndef DOXYGEN_NO_STRATEGY_SPECIALIZATIONS namespace services { template struct tag > { typedef strategy_tag_distance_point_point type; }; template struct return_type, P1, P2> : thomas::template calculation_type {}; template struct comparable_type > { typedef thomas type; }; template struct get_comparable > { static inline thomas apply(thomas const& input) { return input; } }; template struct result_from_distance, P1, P2 > { template static inline typename return_type, P1, P2>::type apply(thomas const& , T const& value) { return value; } }; } // namespace services #endif // DOXYGEN_NO_STRATEGY_SPECIALIZATIONS }} // namespace strategy::distance }} // namespace boost::geometry #endif // BOOST_GEOMETRY_STRATEGIES_GEOGRAPHIC_THOMAS_HPP