1423 | | typename gtl_and< typename is_mutable_point_concept<typename geometry_concept<T1>::type>::type, |
1424 | | typename is_polygon_with_holes_type<T2>::type>::type, |
1425 | | bool>::type |
1426 | | center(T1& center_point, const T2& polygon) { |
1427 | | typedef typename polygon_traits<T2>::coordinate_type coordinate_type; |
1428 | | rectangle_data<coordinate_type> bbox; |
1429 | | extents(bbox, polygon); |
1430 | | return center(center_point, bbox); |
1431 | | } |
1432 | | |
1433 | | template <typename T1, typename T2> |
1434 | | typename enable_if< |
| 1442 | template <typename T1, typename T2> |
| 1443 | typename enable_if< |
| 1444 | typename gtl_and< typename is_mutable_point_concept<typename geometry_concept<T1>::type>::type, |
| 1445 | typename is_polygon_with_holes_type<T2>::type>::type, |
| 1446 | bool>::type |
| 1447 | center(T1& center_point, const T2& polygon) { |
| 1448 | typedef typename polygon_traits<T2>::coordinate_type coordinate_type; |
| 1449 | rectangle_data<coordinate_type> bbox; |
| 1450 | extents(bbox, polygon); |
| 1451 | return center(center_point, bbox); |
| 1452 | } |
| 1453 | |