]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/boost/libs/geometry/test/algorithms/centroid_multi.cpp
import quincy beta 17.1.0
[ceph.git] / ceph / src / boost / libs / geometry / test / algorithms / centroid_multi.cpp
index 5f250116e2f31e0102d67ac14807eef2a62c0610..6f471b9aa42f78de6dc6b306846a6c7f97ec9d0b 100644 (file)
@@ -4,6 +4,7 @@
 // Copyright (c) 2007-2015 Barend Gehrels, Amsterdam, the Netherlands.
 // Copyright (c) 2008-2015 Bruno Lalande, Paris, France.
 // Copyright (c) 2009-2015 Mateusz Loskot, London, UK.
+// Copyright (c) 2017 Adam Wulkiewicz, Lodz, Poland.
 
 // Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
 // (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
@@ -37,6 +38,14 @@ void test_2d(bool is_integer = false)
     std::cout << std::endl << "type: " << typeid(ct).name() << " size: " << sizeof(ct) << std::endl;
 #endif
 
+    test_centroid<bg::model::multi_point<P> >(
+            "MULTIPOINT((1 1),(3 3))",
+            2.0, 2.0);
+
+    test_centroid<bg::model::multi_point<P> >(
+            "MULTIPOINT((-1 -1),(-3 -3))",
+            -2.0, -2.0);
+
     if (! is_integer)
     {
         // Only working for floating point:
@@ -177,10 +186,6 @@ int test_main(int, char* [])
     //test_2d<bg::model::d2::point_xy<long long> >(true);
     //test_2d<bg::model::d2::point_xy<long double> >();
 
-#ifdef HAVE_TTMATH
-    test_2d<bg::model::d2::point_xy<ttmath_big> >();
-#endif
-
     test_exceptions<bg::model::d2::point_xy<double> >();
     test_empty<bg::model::d2::point_xy<double> >();