mirror of
https://github.com/boostorg/geometry.git
synced 2025-05-11 13:34:10 +00:00
[test][distance] Remove unneeded taxicab umbrella strategy.
This commit is contained in:
parent
2828e230f2
commit
5f262f8d19
@ -84,46 +84,6 @@ struct result_from_distance<taxicab_distance, P1, P2>
|
||||
}}}}} // namespace bg::strategy::distance::services
|
||||
|
||||
|
||||
struct taxicab_distance_umbrella
|
||||
: bg::strategies::distance::cartesian<>
|
||||
{
|
||||
template <typename Geometry1, typename Geometry2>
|
||||
static auto distance(Geometry1 const&, Geometry2 const&,
|
||||
std::enable_if_t
|
||||
<
|
||||
bg::util::is_pointlike<Geometry1>::value
|
||||
&& bg::util::is_pointlike<Geometry2>::value
|
||||
> * = nullptr)
|
||||
{
|
||||
return taxicab_distance();
|
||||
}
|
||||
|
||||
template <typename Geometry1, typename Geometry2>
|
||||
static auto distance(Geometry1 const&, Geometry2 const&,
|
||||
std::enable_if_t
|
||||
<
|
||||
bg::util::is_pointlike<Geometry1>::value
|
||||
&& bg::util::is_linear<Geometry2>::value
|
||||
> * = nullptr)
|
||||
{
|
||||
return bg::strategy::distance::projected_point<void, taxicab_distance>();
|
||||
}
|
||||
};
|
||||
|
||||
namespace boost { namespace geometry { namespace strategies { namespace distance { namespace services
|
||||
{
|
||||
|
||||
template <>
|
||||
struct strategy_converter<taxicab_distance>
|
||||
{
|
||||
static auto get(taxicab_distance const&)
|
||||
{
|
||||
return taxicab_distance_umbrella();
|
||||
}
|
||||
};
|
||||
|
||||
}}}}} // namespace bg::strategies::distance::services
|
||||
|
||||
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user