]> git.proxmox.com Git - ceph.git/blame - ceph/src/boost/boost/geometry/algorithms/detail/buffer/parallel_continue.hpp
Add patch for failing prerm scripts
[ceph.git] / ceph / src / boost / boost / geometry / algorithms / detail / buffer / parallel_continue.hpp
CommitLineData
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
13namespace boost { namespace geometry
14{
15
16#ifndef DOXYGEN_NO_DETAIL
17namespace detail { namespace buffer
18{
19
20template <typename T>
21inline 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