• Home
  • Raw
  • Download

Lines Matching refs:bg

64             bg::model::polygon<bg::model::d2::point_xy<int> >,  in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS()
65 typename bg::point_type<Polygon>::type, in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS()
66 typename bg::coordinate_type<Polygon>::type in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS()
74 test_centroid<bg::model::linestring<P> >("LINESTRING(1 1, 2 2, 3 3)", 2.0, 2.0); in test_2d()
75 test_centroid<bg::model::linestring<P> >("LINESTRING(0 0,0 4, 4 4)", 1.0, 3.0); in test_2d()
76 test_centroid<bg::model::linestring<P> >("LINESTRING(0 0,3 3,0 6,3 9,0 12)", 1.5, 6.0); in test_2d()
78 test_centroid<bg::model::linestring<P> >("LINESTRING(1 1,10 1,1 0,10 0,4 -2,1 1)", in test_2d()
82 test_centroid<bg::model::linestring<P> >("LINESTRING(1 1, 1 1)", 1.0, 1.0); in test_2d()
83 test_centroid<bg::model::linestring<P> >("LINESTRING(1 1)", 1.0, 1.0); in test_2d()
86 bg::model::linestring<P> ls; in test_2d()
88 bg::append(ls, P(1, -1)); in test_2d()
89 typedef typename bg::coordinate_type<P>::type coord_type; in test_2d()
92 bg::append(ls, P(coord_type(m), coord_type(-m))); in test_2d()
93 bg::append(ls, P(coord_type(0.0001), coord_type(0.000))); in test_2d()
94 …if (BOOST_GEOMETRY_CONDITION((boost::is_same<typename bg::coordinate_type<P>::type, double>::value… in test_2d()
99 test_centroid<bg::model::linestring<P> >(ls, 1.0, -1.0); in test_2d()
110 test_centroid<bg::model::segment<P> >("LINESTRING(1 1, 3 3)", 2.0, 2.0); in test_2d()
112 test_centroid<bg::model::ring<P> >( in test_2d()
117 test_polygon<bg::model::polygon<P> >(); in test_2d()
121 test_centroid<bg::model::ring<P, false> >( in test_2d()
127 test_centroid<bg::model::ring<P, true, true> >( in test_2d()
129 test_centroid<bg::model::ring<P, true, false> >( in test_2d()
132 test_centroid<bg::model::box<P> >("POLYGON((1 2,3 4))", 2, 3); in test_2d()
138 bg::model::ring<bg::model::d2::point_xy<int> >, in test_2d()
139 P, typename bg::coordinate_type<P>::type in test_2d()
143 bg::model::linestring<bg::model::d2::point_xy<int> >, in test_2d()
144 P, typename bg::coordinate_type<P>::type in test_2d()
148 bg::model::box<bg::model::d2::point_xy<int> >, in test_2d()
149 P, typename bg::coordinate_type<P>::type in test_2d()
157 …test_centroid<bg::model::linestring<P> >("LINESTRING(1 2 3,4 5 -6,7 -8 9,-10 11 12,13 -14 -15, 16 … in test_3d()
159 test_centroid<bg::model::box<P> >("POLYGON((1 2 3,5 6 7))", 3, 4, 5); in test_3d()
160 test_centroid<bg::model::segment<P> >("LINESTRING(1 1 1,3 3 3)", 2, 2, 2); in test_3d()
168 …test_centroid<bg::model::linestring<P> >("LINESTRING(1 2 3 4 95,4 5 -6 24 40,7 -8 9 -5 -7,-10 11 1… in test_5d()
175 test_centroid_exception<bg::model::linestring<P> >(); in test_exceptions()
176 test_centroid_exception<bg::model::polygon<P> >(); in test_exceptions()
177 test_centroid_exception<bg::model::ring<P> >(); in test_exceptions()
180 test_centroid_exception<bg::model::polygon<P> >( in test_exceptions()
182 test_centroid_exception<bg::model::polygon<P> >( in test_exceptions()
190 test_centroid<bg::model::polygon<P> >( in test_empty()
197 typedef bg::model::point<int, 2, bg::cs::cartesian> int_point_type; in test_large_integers()
198 typedef bg::model::point<double, 2, bg::cs::cartesian> double_point_type; in test_large_integers()
200 bg::model::polygon<int_point_type> int_poly; in test_large_integers()
201 bg::model::polygon<double_point_type> double_poly; in test_large_integers()
204 bg::read_wkt(polygon_li, int_poly); in test_large_integers()
205 bg::read_wkt(polygon_li, double_poly); in test_large_integers()
210 bg::centroid(int_poly, int_centroid); in test_large_integers()
211 bg::centroid(double_poly, double_centroid); in test_large_integers()
214 bg::assign_zero(double_centroid_as_int); in test_large_integers()
215 bg::assign(int_centroid, double_centroid_as_int); in test_large_integers()
217 BOOST_CHECK_EQUAL(bg::get<0>(int_centroid), bg::get<0>(double_centroid_as_int)); in test_large_integers()
218 BOOST_CHECK_EQUAL(bg::get<1>(int_centroid), bg::get<1>(double_centroid_as_int)); in test_large_integers()
225 typedef bg::model::point<double, 2, bg::cs::cartesian> point; in test_large_doubles()
227 bg::model::polygon<point> poly_far, poly_near; in test_large_doubles()
230bg::read_wkt("POLYGON((1074699.93 703064.65, 1074703.90 703064.58, 1074704.53 703061.40, 1074702.1… in test_large_doubles()
231bg::read_wkt("POLYGON((699.93 64.65, 703.90 64.58, 704.53 61.40, 702.10 54.62, 699.93 64.65))", po… in test_large_doubles()
233 bg::centroid(poly_far, pt_far); in test_large_doubles()
234 bg::centroid(poly_near, pt_near); in test_large_doubles()
236 BOOST_CHECK(bg::within(pt_far, poly_far)); in test_large_doubles()
237 BOOST_CHECK(bg::within(pt_near, poly_near)); in test_large_doubles()
240 bg::set<0>(pt_near_moved, bg::get<0>(pt_near) + 1074000.0); in test_large_doubles()
241 bg::set<1>(pt_near_moved, bg::get<1>(pt_near) + 703000.0); in test_large_doubles()
246 double d = bg::distance(pt_far, pt_near_moved); in test_large_doubles()
252 test_2d<bg::model::d2::point_xy<double> >(); in test_main()
254 test_2d<bg::model::d2::point_xy<float> >(); in test_main()
261 test_2d<bg::model::d2::point_xy<ttmath_big> >(); in test_main()
272 test_exceptions<bg::model::d2::point_xy<double> >(); in test_main()
273 test_empty<bg::model::d2::point_xy<double> >(); in test_main()