]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | // Boost.Geometry (aka GGL, Generic Geometry Library) |
2 | ||
3 | // Copyright (c) 2012-2014 Barend Gehrels, Amsterdam, the Netherlands. | |
4 | ||
5 | // Use, modification and distribution is subject to the Boost Software License, | |
6 | // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at | |
7 | // http://www.boost.org/LICENSE_1_0.txt) | |
8 | ||
9 | #ifndef BOOST_GEOMETRY_ALGORITHMS_DETAIL_BUFFER_PARALLEL_CONTINUE_HPP | |
10 | #define BOOST_GEOMETRY_ALGORITHMS_DETAIL_BUFFER_PARALLEL_CONTINUE_HPP | |
11 | ||
12 | ||
13 | namespace boost { namespace geometry | |
14 | { | |
15 | ||
16 | #ifndef DOXYGEN_NO_DETAIL | |
17 | namespace detail { namespace buffer | |
18 | { | |
19 | ||
20 | template <typename T> | |
21 | inline bool parallel_continue(T dx1, T dy1, T dx2, T dy2) | |
22 | { | |
23 | T const dot = dx1 * dx2 + dy1 * dy2; | |
24 | return dot > 0; | |
25 | } | |
26 | ||
27 | }} // namespace detail::buffer | |
28 | #endif // DOXYGEN_NO_DETAIL | |
29 | ||
30 | ||
31 | }} // namespace boost::geometry | |
32 | ||
33 | #endif // BOOST_GEOMETRY_ALGORITHMS_DETAIL_BUFFER_PARALLEL_CONTINUE_HPP |