mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-03 09:12:13 +00:00
Merge for Boost.Geometry
[SVN r76363]
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
// Boost.Geometry (aka GGL, Generic Geometry Library)
|
||||
|
||||
// Copyright (c) 2007-2011 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2011 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2011 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
@@ -36,6 +36,12 @@ namespace detail { namespace distance
|
||||
|
||||
template<typename Geometry, typename MultiGeometry, typename Strategy>
|
||||
struct distance_single_to_multi
|
||||
: private dispatch::distance
|
||||
<
|
||||
Geometry,
|
||||
typename range_value<MultiGeometry>::type,
|
||||
Strategy
|
||||
>
|
||||
{
|
||||
typedef typename strategy::distance::services::return_type<Strategy>::type return_type;
|
||||
|
||||
@@ -50,7 +56,13 @@ struct distance_single_to_multi
|
||||
it != boost::end(multi);
|
||||
++it)
|
||||
{
|
||||
return_type dist = geometry::distance(geometry, *it);
|
||||
return_type dist = dispatch::distance
|
||||
<
|
||||
Geometry,
|
||||
typename range_value<MultiGeometry>::type,
|
||||
Strategy
|
||||
>::apply(geometry, *it, strategy);
|
||||
|
||||
if (first || dist < mindist)
|
||||
{
|
||||
mindist = dist;
|
||||
@@ -64,6 +76,12 @@ struct distance_single_to_multi
|
||||
|
||||
template<typename Multi1, typename Multi2, typename Strategy>
|
||||
struct distance_multi_to_multi
|
||||
: private distance_single_to_multi
|
||||
<
|
||||
typename range_value<Multi1>::type,
|
||||
Multi2,
|
||||
Strategy
|
||||
>
|
||||
{
|
||||
typedef typename strategy::distance::services::return_type<Strategy>::type return_type;
|
||||
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
// Boost.Geometry (aka GGL, Generic Geometry Library)
|
||||
|
||||
// Copyright (c) 2007-2011 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2011 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2011 Mateusz Loskot, London, UK.
|
||||
// Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
|
||||
// Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
|
||||
// Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
|
||||
|
||||
// Parts of Boost.Geometry are redesigned from Geodan's Geographic Library
|
||||
// (geolib/GGL), copyright (c) 1995-2010 Geodan, Amsterdam, the Netherlands.
|
||||
|
||||
Reference in New Issue
Block a user