Home
last modified time | relevance | path

Searched refs:pythagoras (Results 1 – 25 of 29) sorted by relevance

12

/third_party/boost/boost/geometry/strategies/cartesian/
Ddistance_pythagoras.hpp81 class pythagoras class
137 class pythagoras class
168 comparable::pythagoras<CalculationType>::apply(p1, p2) in apply()
180 struct tag<pythagoras<CalculationType> >
187 struct return_type<distance::pythagoras<CalculationType>, P1, P2>
188 : pythagoras<CalculationType>::template calculation_type<P1, P2>
193 struct comparable_type<pythagoras<CalculationType> >
195 typedef comparable::pythagoras<CalculationType> type;
200 struct get_comparable<pythagoras<CalculationType> >
202 typedef comparable::pythagoras<CalculationType> comparable_type;
[all …]
Dindex.hpp100 typedef geometry::strategy::distance::comparable::pythagoras
124 geometry::strategy::distance::pythagoras<CalculationType>
135 geometry::strategy::distance::pythagoras<CalculationType>
169 struct from_strategy<distance::comparable::pythagoras<CalculationType> >
173 static inline type get(distance::comparable::pythagoras<CalculationType> const&) in get()
Dline_interpolate.hpp43 typename DistanceStrategy = distance::pythagoras<CalculationType>
Ddistance_segment_box.hpp32 typename Strategy = pythagoras<CalculationType>
Ddistance_projected_point.hpp77 typename Strategy = pythagoras<CalculationType>
Ddistance_projected_point_ax.hpp135 typename Strategy = pythagoras<CalculationType>
/third_party/boost/libs/geometry/test/strategies/
Dpythagoras.cpp55 typedef bg::strategy::distance::pythagoras<> pythagoras_type; in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS()
58 pythagoras_type pythagoras; in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS() local
59 return_type result = pythagoras.apply(p1, p2); in BOOST_GEOMETRY_REGISTER_BOOST_TUPLE_CS()
72 typedef bg::strategy::distance::pythagoras<> pythagoras_type; in test_axis_3d()
75 pythagoras_type pythagoras; in test_axis_3d() local
77 return_type result = pythagoras.apply(p1, p2); in test_axis_3d()
81 result = pythagoras.apply(p1, p2); in test_axis_3d()
85 result = pythagoras.apply(p1, p2); in test_axis_3d()
98 typedef bg::strategy::distance::pythagoras<> strategy_type; in test_arbitrary_3d()
108 typedef bg::strategy::distance::comparable::pythagoras<> strategy_type; in test_arbitrary_3d()
[all …]
Dprojected_point_ax.cpp32 bg::strategy::distance::comparable::pythagoras<> in test_all_2d_ax()
DJamfile.v232 [ run pythagoras.cpp : : : : strategies_pythagoras ]
DJamfile32 [ run pythagoras.cpp : : : : strategies_pythagoras ]
Dpythagoras_point_box.cpp353 pythagoras_type pythagoras; in test_integer() local
354 distance_type distance = pythagoras.apply(p, b); in test_integer()
Dtest_projected_point.hpp175 bg::strategy::distance::comparable::pythagoras<> in test_2d()
/third_party/boost/libs/geometry/test/cs_undefined/
Dmeasure.cpp30 bg::length(g.s, bg::strategy::distance::pythagoras<>()); in test_main()
33 bg::length(g.ls, bg::strategy::distance::pythagoras<>()); in test_main()
36 bg::length(g.mls, bg::strategy::distance::pythagoras<>()); in test_main()
40 bg::perimeter(g.r, bg::strategy::distance::pythagoras<>()); in test_main()
43 bg::perimeter(g.po, bg::strategy::distance::pythagoras<>()); in test_main()
46 bg::perimeter(g.mpo, bg::strategy::distance::pythagoras<>()); in test_main()
Ddistance.cpp18 bg::distance(g.pt, g.pt, bg::strategy::distance::pythagoras<>()); in test_main()
21 bg::distance(g.pt, g.mpt, bg::strategy::distance::pythagoras<>()); in test_main()
24 bg::distance(g.mpt, g.mpt, bg::strategy::distance::pythagoras<>()); in test_main()
/third_party/boost/libs/geometry/doc/generated/
Ddistance_pythagoras.qbk16 [section:strategy_distance_pythagoras strategy::distance::pythagoras]
18 …><indexterm><primary>distance</primary></indexterm><indexterm><primary>pythagoras</primary></index…
23 class strategy::distance::pythagoras
41 ] [applies the distance calculation using pythagoras ] [[* P1 const &]: ['p1]: first point
Dline_interpolate_cartesian.qbk33 [[typename DistanceStrategy] [distance::pythagoras<CalculationType>] [The underlying point-point di…
Ddistance_pythagoras_point_box.qbk41 ] [applies the distance calculation using pythagoras ] [[* Point const &]: ['point]: point
Ddistance_projected_point.qbk36 [[typename Strategy] [pythagoras<CalculationType>] [underlying point-point distance strategy ]]
/third_party/boost/libs/geometry/test/algorithms/distance/
Ddistance.cpp182 return_type ds1 = bg::distance(p, g, bg::strategy::distance::pythagoras<>()); in test_distance_linear()
256 bg::strategy::distance::pythagoras<> pyth; in test_2d()
298 test_distance<P1, P2>(pythagoras<>(), "POINT(0 0)", "POINT(1 1)", sqrt(2.0)); in test_mixed()
300 test_distance<P1, mp1>(pythagoras<>(), "POINT(0 0)", "MULTIPOINT((1 1),(1 0),(0 2))", 1.0); in test_mixed()
301 test_distance<P1, mp2>(pythagoras<>(), "POINT(0 0)", "MULTIPOINT((1 1),(1 0),(0 2))", 1.0); in test_mixed()
302 test_distance<P2, mp1>(pythagoras<>(), "POINT(0 0)", "MULTIPOINT((1 1),(1 0),(0 2))", 1.0); in test_mixed()
303 test_distance<P2, mp2>(pythagoras<>(), "POINT(0 0)", "MULTIPOINT((1 1),(1 0),(0 2))", 1.0); in test_mixed()
306 test_distance<mp1, P1>(pythagoras<>(), "MULTIPOINT((1 1),(1 0),(0 2))", "POINT(0 0)", 1.0); in test_mixed()
307 test_distance<mp1, P2>(pythagoras<>(), "MULTIPOINT((1 1),(1 0),(0 2))", "POINT(0 0)", 1.0); in test_mixed()
308 test_distance<mp2, P1>(pythagoras<>(), "MULTIPOINT((1 1),(1 0),(0 2))", "POINT(0 0)", 1.0); in test_mixed()
[all …]
Ddistance_ca_pl_pl.cpp30 typedef bg::strategy::distance::pythagoras<> point_point_strategy;
Ddistance_ca_pl_l.cpp32 typedef bg::strategy::distance::pythagoras<> point_point_strategy;
/third_party/boost/libs/geometry/example/
Dml02_distance_strategy.cpp26 typedef strategy::distance::pythagoras<point_xy, point_xy, double> strategy1_type; in main()
31 typedef strategy::distance::comparable::pythagoras<point_xy, point_xy, double> strategy2_type; in main()
/third_party/boost/libs/geometry/doc/
Ddesign_rationale.qbk131 struct pythagoras
136 return d * d + pythagoras<P1, P2, D-1>::apply(a, b);
141 struct pythagoras<P1, P2, 0>
149 The distance function is calling that `pythagoras` structure, specifying the number of dimensions:
156 return sqrt(pythagoras<P1, P2, dimension<P1>::value>::apply(a, b));
224 modify the `pythagoras` computation class. It should return the coordinate type of its input.
235 struct pythagoras
246 return d * d + pythagoras <P1, P2, D-1> ::apply(a, b);
324 // here we call pythagoras
479 typedef pythagoras<P1, P2, D> type;
[all …]
/third_party/boost/libs/geometry/test/algorithms/similarity/
Ddiscrete_frechet_distance.cpp29 …d >("LINESTRING(3 0,2 1,3 2)","LINESTRING(0 0,3 4,4 3)",bg::strategy::distance::pythagoras<>(), 3); in test_all_cartesian()
/third_party/boost/libs/geometry/test/algorithms/
Ddensify.cpp91 bg::strategy::distance::pythagoras<> dist_s;

12