annotate DEPENDENCIES/generic/include/boost/geometry/algorithms/detail/course.hpp @ 133:4acb5d8d80b6
tip
Don't fail environmental check if README.md exists (but .txt and no-suffix don't)
author |
Chris Cannam |
date |
Tue, 30 Jul 2019 12:25:44 +0100 |
parents |
f46d142149f5 |
children |
|
rev |
line source |
Chris@102
|
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
|
Chris@102
|
2
|
Chris@102
|
3 // Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
Chris@102
|
4
|
Chris@102
|
5 // This file was modified by Oracle on 2014.
|
Chris@102
|
6 // Modifications copyright (c) 2014, Oracle and/or its affiliates.
|
Chris@102
|
7
|
Chris@102
|
8 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
|
Chris@102
|
9
|
Chris@102
|
10 // Use, modification and distribution is subject to the Boost Software License,
|
Chris@102
|
11 // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
|
Chris@102
|
12 // http://www.boost.org/LICENSE_1_0.txt)
|
Chris@102
|
13
|
Chris@102
|
14 #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_COURSE_HPP
|
Chris@102
|
15 #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_COURSE_HPP
|
Chris@102
|
16
|
Chris@102
|
17 #include <boost/geometry/algorithms/detail/azimuth.hpp>
|
Chris@102
|
18
|
Chris@102
|
19 namespace boost { namespace geometry
|
Chris@102
|
20 {
|
Chris@102
|
21
|
Chris@102
|
22 #ifndef DOXYGEN_NO_DETAIL
|
Chris@102
|
23 namespace detail
|
Chris@102
|
24 {
|
Chris@102
|
25
|
Chris@102
|
26 /// Calculate course (bearing) between two points.
|
Chris@102
|
27 ///
|
Chris@102
|
28 /// NOTE: left for convenience and temporary backward compatibility
|
Chris@102
|
29 template <typename ReturnType, typename Point1, typename Point2>
|
Chris@102
|
30 inline ReturnType course(Point1 const& p1, Point2 const& p2)
|
Chris@102
|
31 {
|
Chris@102
|
32 return azimuth<ReturnType>(p1, p2);
|
Chris@102
|
33 }
|
Chris@102
|
34
|
Chris@102
|
35 } // namespace detail
|
Chris@102
|
36 #endif // DOXYGEN_NO_DETAIL
|
Chris@102
|
37
|
Chris@102
|
38 }} // namespace boost::geometry
|
Chris@102
|
39
|
Chris@102
|
40 #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_COURSE_HPP
|