// Boost.Geometry (aka GGL, Generic Geometry Library) // Unit Test // Copyright (c) 2010-2012 Barend Gehrels, Amsterdam, the Netherlands. // Use, modification and distribution is subject to the Boost Software License, // Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at // http://www.boost.org/LICENSE_1_0.txt) //#define BOOST_GEOMETRY_DEBUG_WITH_MAPPER //#define BOOST_GEOMETRY_DEBUG_ASSEMBLE //#define BOOST_GEOMETRY_DEBUG_IDENTIFIER #include #include #include #include #include #include #include static std::string const simplex = "POINT(5 5)"; template void test_all() { namespace buf = bg::strategy::buffer; typedef bg::model::polygon

polygon; double const pi = boost::geometry::math::pi(); test_one("simplex1", simplex, pi, 1.0, 1.0); test_one("simplex2", simplex, pi * 4.0, 2.0, 2.0); test_one("simplex3", simplex, pi * 9.0, 3.0, 3.0); } int test_main(int, char* []) { //std::cout << std::setprecision(6); //test_all >(); test_all >(); return 0; }