1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
5 // This file was modified by Oracle on 2014.
6 // Modifications copyright (c) 2014, Oracle and/or its affiliates.
8 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
10 // Use, modification and distribution is subject to the Boost Software License,
11 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
12 // http://www.boost.org/LICENSE_1_0.txt)
14 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_COURSE_HPP
15 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_COURSE_HPP
17 #include <boost/geometry/algorithms/detail/azimuth.hpp>
19 namespace boost { namespace geometry
22 #ifndef DOXYGEN_NO_DETAIL
26 /// Calculate course (bearing) between two points.
28 /// NOTE: left for convenience and temporary backward compatibility
29 template <typename ReturnType, typename Point1, typename Point2>
30 inline ReturnType course(Point1 const& p1, Point2 const& p2)
32 return azimuth<ReturnType>(p1, p2);
36 #endif // DOXYGEN_NO_DETAIL
38 }} // namespace boost::geometry
40 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_COURSE_HPP