]> git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/geometry/include/boost/geometry/algorithms/detail/course.hpp
add subtree-ish sources for 12.0.3
[ceph.git] / ceph / src / boost / libs / geometry / include / boost / geometry / algorithms / detail / course.hpp
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
2
3 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
4
5 // This file was modified by Oracle on 2014.
6 // Modifications copyright (c) 2014, Oracle and/or its affiliates.
7
8 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
9
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)
13
14 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_COURSE_HPP
15 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_COURSE_HPP
16
17 #include <boost/geometry/algorithms/detail/azimuth.hpp>
18
19 namespace boost { namespace geometry
20 {
21
22 #ifndef DOXYGEN_NO_DETAIL
23 namespace detail
24 {
25
26 /// Calculate course (bearing) between two points.
27 ///
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)
31 {
32 return azimuth<ReturnType>(p1, p2);
33 }
34
35 } // namespace detail
36 #endif // DOXYGEN_NO_DETAIL
37
38 }} // namespace boost::geometry
39
40 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_COURSE_HPP