// Boost.Geometry // Copyright (c) 2019, Oracle and/or its affiliates. // Contributed and/or modified by Adam Wulkiewicz, on behalf of Oracle // Licensed under the Boost Software License version 1.0. // http://www.boost.org/users/license.html #ifndef BOOST_GEOMETRY_TEST_CS_UNDEFINED_COMMON_HPP #define BOOST_GEOMETRY_TEST_CS_UNDEFINED_COMMON_HPP #include #include #include #include struct geom { //typedef bg::model::point point; typedef bg::model::point point; typedef bg::model::box box; typedef bg::model::segment segment; typedef bg::model::linestring linestring; typedef bg::model::ring ring; typedef bg::model::polygon polygon; typedef bg::model::multi_linestring multi_linestring; typedef bg::model::multi_polygon multi_polygon; typedef bg::model::multi_point multi_point; geom() { pt = point(0, 0); b = box(point(-1, -1), point(1, 1)); s = segment(point(0, 0), point(1, 1)); ls.push_back(point(0, 0)); ls.push_back(point(1, 1)); ls.push_back(point(1.1, 1.1)); r.push_back(point(0, 0)); r.push_back(point(0, 1)); r.push_back(point(1, 1)); r.push_back(point(1, 0)); r.push_back(point(0, 0)); po.outer() = r; po.inners().push_back(ring()); po.inners().back().push_back(point(0, 0)); po.inners().back().push_back(point(0.2, 0.1)); po.inners().back().push_back(point(0.1, 0.2)); po.inners().back().push_back(point(0, 0)); mls.push_back(ls); mpo.push_back(po); mpt.push_back(pt); } point pt; box b; segment s; linestring ls; ring r; polygon po; multi_linestring mls; multi_polygon mpo; multi_point mpt; }; #endif // BOOST_GEOMETRY_TEST_CS_UNDEFINED_COMMON_HPP