Debian Codegraph @

include/deal.II/boost_adaptors/segment.h

raw
1 // ------------------------------------------------------------------------
2 //
3 // SPDX-License-Identifier: LGPL-2.1-or-later
4 // Copyright (C) 2018 - 2023 by the deal.II authors
5 //
6 // This file is part of the deal.II library.
7 //
8 // Part of the source code is dual licensed under Apache-2.0 WITH
9 // LLVM-exception OR LGPL-2.1-or-later. Detailed license information
10 // governing the source code and code contributions can be found in
11 // LICENSE.md and CONTRIBUTING.md at the top level directory of deal.II.
12 //
13 // ------------------------------------------------------------------------
14
15 #ifndef dealii_boost_adaptor_segment_h
16 #define dealii_boost_adaptor_segment_h
17
18 #include <deal.II/base/config.h>
19
20 #include <deal.II/base/point.h>
21
22 #include <deal.II/boost_adaptors/point.h>
23
24 #include <boost/geometry/geometries/segment.hpp>
25
26 DEAL_II_NAMESPACE_OPEN
27
28 /**
29 * An alias for boost::geometry::model::segment that uses the deal.II
30 * Point class.
31 */
32 template <int dim>
33 using Segment = boost::geometry::model::segment<Point<dim>>;
34
35 DEAL_II_NAMESPACE_CLOSE
36
37 #endif