PageRenderTime 9ms CodeModel.GetById 2ms app.highlight 5ms RepoModel.GetById 1ms app.codeStats 0ms

/Src/Dependencies/Boost/libs/geometry/test/algorithms/test_relate.hpp

http://hadesmem.googlecode.com/
C++ Header | 33 lines | 16 code | 11 blank | 6 comment | 0 complexity | eda45926755ea5c0c24df01f4b821d2d MD5 | raw file
 1// Boost.Geometry (aka GGL, Generic Geometry Library) 
 2// Unit Test
 3
 4// Copyright (c) 2010-2011 Barend Gehrels, Amsterdam, the Netherlands.
 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_TEST_RELATE_HPP
10#define BOOST_GEOMETRY_TEST_RELATE_HPP
11
12#include <string>
13
14
15static std::string disjoint_simplex[2] =
16    {"POLYGON((0 0,0 2,2 2,0 0))",
17    "POLYGON((1 0,3 2,3 0,1 0))"};
18
19static std::string touch_simplex[2] =
20    {"POLYGON((0 0,0 2,2 2,0 0))",
21    "POLYGON((2 2,3 2,3 0,2 2))"};
22
23static std::string overlaps_box[2] =
24    {"POLYGON((0 0,0 2,2 2,0 0))",
25    "POLYGON((1 1,3 2,3 0,1 1))"};
26
27static std::string within_simplex[2] =
28    {"POLYGON((0 0,1 4,4 1,0 0))",
29    "POLYGON((1 1,1 3,3 1,1 1))"};
30
31
32
33#endif