summaryrefslogtreecommitdiffstats
path: root/src/boost/libs/geometry/test/cs_undefined/distance.cpp
diff options
context:
space:
mode:
authorDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
committerDaniel Baumann <daniel.baumann@progress-linux.org>2024-04-27 18:24:20 +0000
commit483eb2f56657e8e7f419ab1a4fab8dce9ade8609 (patch)
treee5d88d25d870d5dedacb6bbdbe2a966086a0a5cf /src/boost/libs/geometry/test/cs_undefined/distance.cpp
parentInitial commit. (diff)
downloadceph-upstream.tar.xz
ceph-upstream.zip
Adding upstream version 14.2.21.upstream/14.2.21upstream
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'src/boost/libs/geometry/test/cs_undefined/distance.cpp')
-rw-r--r--src/boost/libs/geometry/test/cs_undefined/distance.cpp113
1 files changed, 113 insertions, 0 deletions
diff --git a/src/boost/libs/geometry/test/cs_undefined/distance.cpp b/src/boost/libs/geometry/test/cs_undefined/distance.cpp
new file mode 100644
index 00000000..8bd03a44
--- /dev/null
+++ b/src/boost/libs/geometry/test/cs_undefined/distance.cpp
@@ -0,0 +1,113 @@
+// 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
+
+#include "common.hpp"
+
+#include <boost/geometry/algorithms/distance.hpp>
+
+int test_main(int, char*[])
+{
+ geom g;
+
+ bg::distance(g.pt, g.pt, bg::strategy::distance::pythagoras<>());
+ bg::distance(g.pt, g.pt, bg::strategy::distance::haversine<>());
+ bg::distance(g.pt, g.pt, bg::strategy::distance::geographic<>());
+ bg::distance(g.pt, g.mpt, bg::strategy::distance::pythagoras<>());
+ bg::distance(g.pt, g.mpt, bg::strategy::distance::haversine<>());
+ bg::distance(g.pt, g.mpt, bg::strategy::distance::geographic<>());
+ bg::distance(g.mpt, g.mpt, bg::strategy::distance::pythagoras<>());
+ bg::distance(g.mpt, g.mpt, bg::strategy::distance::haversine<>());
+ bg::distance(g.mpt, g.mpt, bg::strategy::distance::geographic<>());
+ bg::distance(g.pt, g.ls, bg::strategy::distance::projected_point<>());
+ bg::distance(g.pt, g.ls, bg::strategy::distance::cross_track<>());
+ bg::distance(g.pt, g.ls, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.pt, g.mls, bg::strategy::distance::projected_point<>());
+ bg::distance(g.pt, g.mls, bg::strategy::distance::cross_track<>());
+ bg::distance(g.pt, g.mls, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.mpt, g.ls, bg::strategy::distance::projected_point<>());
+ bg::distance(g.mpt, g.ls, bg::strategy::distance::cross_track<>());
+ bg::distance(g.mpt, g.ls, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.mpt, g.mls, bg::strategy::distance::projected_point<>());
+ bg::distance(g.mpt, g.mls, bg::strategy::distance::cross_track<>());
+ bg::distance(g.mpt, g.mls, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.ls, g.ls, bg::strategy::distance::projected_point<>());
+ bg::distance(g.ls, g.ls, bg::strategy::distance::cross_track<>());
+ bg::distance(g.ls, g.ls, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.ls, g.mls, bg::strategy::distance::projected_point<>());
+ bg::distance(g.ls, g.mls, bg::strategy::distance::cross_track<>());
+ bg::distance(g.ls, g.mls, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.mls, g.mls, bg::strategy::distance::projected_point<>());
+ bg::distance(g.mls, g.mls, bg::strategy::distance::cross_track<>());
+ bg::distance(g.mls, g.mls, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.pt, g.r, bg::strategy::distance::projected_point<>());
+ bg::distance(g.pt, g.r, bg::strategy::distance::cross_track<>());
+ bg::distance(g.pt, g.r, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.pt, g.po, bg::strategy::distance::projected_point<>());
+ bg::distance(g.pt, g.po, bg::strategy::distance::cross_track<>());
+ bg::distance(g.pt, g.po, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.pt, g.mpo, bg::strategy::distance::projected_point<>());
+ bg::distance(g.pt, g.mpo, bg::strategy::distance::cross_track<>());
+ bg::distance(g.pt, g.mpo, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.mpt, g.r, bg::strategy::distance::projected_point<>());
+ bg::distance(g.mpt, g.r, bg::strategy::distance::cross_track<>());
+ bg::distance(g.mpt, g.r, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.mpt, g.po, bg::strategy::distance::projected_point<>());
+ bg::distance(g.mpt, g.po, bg::strategy::distance::cross_track<>());
+ bg::distance(g.mpt, g.po, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.mpt, g.mpo, bg::strategy::distance::projected_point<>());
+ bg::distance(g.mpt, g.mpo, bg::strategy::distance::cross_track<>());
+ bg::distance(g.mpt, g.mpo, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.ls, g.r, bg::strategy::distance::projected_point<>());
+ bg::distance(g.ls, g.r, bg::strategy::distance::cross_track<>());
+ bg::distance(g.ls, g.r, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.ls, g.po, bg::strategy::distance::projected_point<>());
+ bg::distance(g.ls, g.po, bg::strategy::distance::cross_track<>());
+ bg::distance(g.ls, g.po, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.ls, g.mpo, bg::strategy::distance::projected_point<>());
+ bg::distance(g.ls, g.mpo, bg::strategy::distance::cross_track<>());
+ bg::distance(g.ls, g.mpo, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.mls, g.r, bg::strategy::distance::projected_point<>());
+ bg::distance(g.mls, g.r, bg::strategy::distance::cross_track<>());
+ bg::distance(g.mls, g.r, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.mls, g.po, bg::strategy::distance::projected_point<>());
+ bg::distance(g.mls, g.po, bg::strategy::distance::cross_track<>());
+ bg::distance(g.mls, g.po, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.mls, g.mpo, bg::strategy::distance::projected_point<>());
+ bg::distance(g.mls, g.mpo, bg::strategy::distance::cross_track<>());
+ bg::distance(g.mls, g.mpo, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.r, g.r, bg::strategy::distance::projected_point<>());
+ bg::distance(g.r, g.r, bg::strategy::distance::cross_track<>());
+ bg::distance(g.r, g.r, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.r, g.po, bg::strategy::distance::projected_point<>());
+ bg::distance(g.r, g.po, bg::strategy::distance::cross_track<>());
+ bg::distance(g.r, g.po, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.r, g.mpo, bg::strategy::distance::projected_point<>());
+ bg::distance(g.r, g.mpo, bg::strategy::distance::cross_track<>());
+ bg::distance(g.r, g.mpo, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.po, g.r, bg::strategy::distance::projected_point<>());
+ bg::distance(g.po, g.r, bg::strategy::distance::cross_track<>());
+ bg::distance(g.po, g.r, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.po, g.po, bg::strategy::distance::projected_point<>());
+ bg::distance(g.po, g.po, bg::strategy::distance::cross_track<>());
+ bg::distance(g.po, g.po, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.po, g.mpo, bg::strategy::distance::projected_point<>());
+ bg::distance(g.po, g.mpo, bg::strategy::distance::cross_track<>());
+ bg::distance(g.po, g.mpo, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.mpo, g.r, bg::strategy::distance::projected_point<>());
+ bg::distance(g.mpo, g.r, bg::strategy::distance::cross_track<>());
+ bg::distance(g.mpo, g.r, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.mpo, g.po, bg::strategy::distance::projected_point<>());
+ bg::distance(g.mpo, g.po, bg::strategy::distance::cross_track<>());
+ bg::distance(g.mpo, g.po, bg::strategy::distance::geographic_cross_track<>());
+ bg::distance(g.mpo, g.mpo, bg::strategy::distance::projected_point<>());
+ bg::distance(g.mpo, g.mpo, bg::strategy::distance::cross_track<>());
+ bg::distance(g.mpo, g.mpo, bg::strategy::distance::geographic_cross_track<>());
+
+ return 0;
+}