/third_party/boost/libs/iterator/test/ |
D | distance_test.cpp | 17 void test_distance(Iterator it_from, Iterator it_to, int n) in test_distance() function 29 test_distance(ptr1, ptr2, 3); in main() 30 test_distance(ptr2, ptr1, -3); in main() 32 test_distance( in main() 37 test_distance( in main() 46 test_distance(ints.begin(), ints.end(), 3); in main() 47 test_distance(ints.end(), ints.begin(), -3); in main() 49 test_distance( in main() 54 test_distance( in main() 63 test_distance(ints.begin(), ints.end(), 3); in main() [all …]
|
/third_party/boost/libs/geometry/test/algorithms/distance/ |
D | distance.cpp | 217 void test_distance(std::string const& wkt1, std::string const& wkt2, double expected) in test_distance() function 229 void test_distance(Strategy const& strategy, std::string const& wkt1, in test_distance() function 247 test_distance<P, P>("POINT(0 0)", "POINT(1 1)", sqrt(2.0)); in test_2d() 248 test_distance<P, mp>("POINT(0 0)", "MULTIPOINT((1 1),(1 0),(0 2))", 1.0); in test_2d() 249 test_distance<mp, P>("MULTIPOINT((1 1),(1 0),(0 2))", "POINT(0 0)", 1.0); in test_2d() 250 test_distance<mp, mp>("MULTIPOINT((1 1),(1 0),(0 2))", "MULTIPOINT((2 2),(2 3))", sqrt(2.0)); in test_2d() 251 test_distance<P, ml>("POINT(0 0)", "MULTILINESTRING((1 1,2 2),(1 0,2 0),(0 2,0 3))", 1.0); in test_2d() 252 test_distance<ml, P>("MULTILINESTRING((1 1,2 2),(1 0,2 0),(0 2,0 3))", "POINT(0 0)", 1.0); in test_2d() 253 …test_distance<ml, mp>("MULTILINESTRING((1 1,2 2),(1 0,2 0),(0 2,0 3))", "MULTIPOINT((0 0),(1 1))",… in test_2d() 257 test_distance<P, P>(pyth, "POINT(0 0)", "POINT(1 1)", sqrt(2.0)); in test_2d() [all …]
|
D | test_distance.hpp | 91 void test_distance(Geometry1 const& geometry1, in test_distance() function 120 test_distance(geometry1, geometry2, expected_distance); in test_geometry()
|
/third_party/boost/libs/geometry/test/algorithms/ |
D | line_interpolate.cpp | 108 inline void test_distance(std::string const& wkt1, in test_distance() function 124 inline void test_distance(std::string const& wkt1, in test_distance() function 154 test_distance<LS,P>(l1, -1, "POINT(1 1)"); in test_car_edge_cases() 155 test_distance<LS,MP>(l1, -1, "MULTIPOINT((1 1))"); in test_car_edge_cases() 158 test_distance<LS,P>(l1, 5, "POINT(1 3)"); in test_car_edge_cases() 159 test_distance<LS,MP>(l1, 5, "MULTIPOINT((1 3))"); in test_car_edge_cases() 162 test_distance<LS,P>(l01, 1, "POINT(1 1)"); in test_car_edge_cases() 163 test_distance<LS,MP>(l01, 1, "MULTIPOINT((1 1))"); in test_car_edge_cases() 166 test_distance<LS,P>(l02, 1, "POINT(1 1)"); in test_car_edge_cases() 167 test_distance<LS,MP>(l02, 1, "MULTIPOINT((1 1))"); in test_car_edge_cases() [all …]
|
/third_party/boost/libs/geometry/test/strategies/ |
D | haversine.cpp | 39 struct test_distance struct 73 test_distance<Point, LatitudePolicy>::test(4, 52, 2, 48, average_earth_radius, a_p, 1.0); in test_all() argument 74 test_distance<Point, LatitudePolicy>::test(2, 48, 4, 52, average_earth_radius, a_p, 1.0); in test_all() 75 test_distance<Point, LatitudePolicy>::test(4, 52, 2, 48, 1.0, a_p * e2u, 0.001); in test_all() 79 test_distance<Point, LatitudePolicy>::test(4, 52, 2, 41, average_earth_radius, a_b, 1.0); in test_all() 80 test_distance<Point, LatitudePolicy>::test(2, 41, 4, 52, average_earth_radius, a_b, 1.0); in test_all() 81 test_distance<Point, LatitudePolicy>::test(4, 52, 2, 41, 1.0, a_b * e2u, 0.001); in test_all()
|
D | thomas.cpp | 42 void test_distance(double lon1, double lat1, double lon2, double lat2, double expected_km) in test_distance() function 114 test_distance<P1, P2>(0, 90, 1, 80, 1116.825795); // polar in test_all() 115 test_distance<P1, P2>(0, -90, 1, -80, 1116.825795); // polar in test_all() 116 test_distance<P1, P2>(4, 52, 4, 52, 0.0); // no point difference in test_all() 117 test_distance<P1, P2>(4, 52, 3, 40, 1336.025365); // normal case in test_all()
|
D | distance.cpp | 40 void test_distance(double lon1, double lat1, double lon2, double lat2) in test_distance() function 79 test_distance<P1, P2, FormulaPolicy>(lon1, lat1, lon2, lat2); in test_distance_reverse() 80 test_distance<P1, P2, FormulaPolicy>(lon2, lat2, lon1, lat1); in test_distance_reverse()
|
D | cross_track.cpp | 43 void test_distance( in test_distance() function 161 test_distance<Point, LatitudePolicy>(2, 48, 4, 52, 2, 41, average_earth_radius, p_to_ab, 0.1); in test_all() 162 test_distance<Point, LatitudePolicy>(2, 48, 2, 41, 4, 52, average_earth_radius, p_to_ab, 0.1); in test_all()
|
D | andoyer.cpp | 69 void test_distance(double lon1, double lat1, double lon2, double lat2, double expected_km) in test_distance() function 164 test_distance<P1, P2>(lon1, lat1, lon2, lat2, expected_km); in test_distazi()
|
/third_party/python/Lib/test/ |
D | test_turtle.py | 234 def test_distance(self): member in TestVec2D 322 def test_distance(self): member in TestTNavigator
|