]>
git.proxmox.com Git - ceph.git/blob - ceph/src/boost/libs/geometry/test/algorithms/relational_operations/overlaps/overlaps.cpp
c6407f756f9080cce3c42d048871dc46c6606274
1 // Boost.Geometry (aka GGL, Generic Geometry Library)
3 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
5 // This file was modified by Oracle on 2014, 2015.
6 // Modifications copyright (c) 2014-2015 Oracle and/or its affiliates.
8 // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle
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)
14 #include "test_overlaps.hpp"
19 typedef bg::model::multi_point
<P
> mpt
;
21 test_geometry
<mpt
, mpt
>("MULTIPOINT(0 0,1 1,2 2)", "MULTIPOINT(1 1,3 3,4 4)", true);
22 test_geometry
<mpt
, mpt
>("MULTIPOINT(0 0,1 1,2 2)", "MULTIPOINT(1 1,2 2)", false);
28 typedef bg::model::linestring
<P
> ls
;
29 typedef bg::model::multi_linestring
<ls
> mls
;
31 test_geometry
<ls
, ls
>("LINESTRING(0 0,2 2,3 1)", "LINESTRING(1 1,2 2,4 4)", true);
32 test_geometry
<ls
, ls
>("LINESTRING(0 0,2 2,4 0)", "LINESTRING(0 1,2 1,3 2)", false);
34 test_geometry
<ls
, mls
>("LINESTRING(0 0,2 2,3 1)", "MULTILINESTRING((1 1,2 2),(2 2,4 4))", true);
35 test_geometry
<ls
, mls
>("LINESTRING(0 0,2 2,3 1)", "MULTILINESTRING((1 1,2 2),(3 3,4 4))", true);
36 test_geometry
<ls
, mls
>("LINESTRING(0 0,3 3,3 1)", "MULTILINESTRING((3 3,2 2),(0 0,1 1))", false);
46 int test_main( int , char* [] )
48 test_2d
<bg::model::d2::point_xy
<int> >();
49 test_2d
<bg::model::d2::point_xy
<double> >();
51 #if defined(HAVE_TTMATH)
52 test_2d
<bg::model::d2::point_xy
<ttmath_big
> >();