|
Boost-Commit : |
Subject: [Boost-commit] svn:boost r84854 - trunk/boost/geometry/extensions/nsphere/algorithms
From: adam.wulkiewicz_at_[hidden]
Date: 2013-06-20 17:57:28
Author: awulkiew
Date: 2013-06-20 17:57:28 EDT (Thu, 20 Jun 2013)
New Revision: 84854
URL: http://svn.boost.org/trac/boost/changeset/84854
Log:
[geometry][extensions]: added missing covered_by algorithm for Point and NSphere.
Text files modified:
trunk/boost/geometry/extensions/nsphere/algorithms/covered_by.hpp | 12 ++++++++++++
1 files changed, 12 insertions(+), 0 deletions(-)
Modified: trunk/boost/geometry/extensions/nsphere/algorithms/covered_by.hpp
==============================================================================
--- trunk/boost/geometry/extensions/nsphere/algorithms/covered_by.hpp Thu Jun 20 17:42:23 2013 (r84853)
+++ trunk/boost/geometry/extensions/nsphere/algorithms/covered_by.hpp 2013-06-20 17:57:28 EDT (Thu, 20 Jun 2013) (r84854)
@@ -19,6 +19,7 @@
#include <boost/geometry/algorithms/covered_by.hpp>
#include <boost/geometry/extensions/nsphere/strategies/cartesian/nsphere_in_box.hpp>
+#include <boost/geometry/extensions/nsphere/strategies/cartesian/point_in_nsphere.hpp>
namespace boost { namespace geometry
@@ -40,6 +41,17 @@
}
};
+template <typename Point, typename NSphere>
+struct covered_by<Point, NSphere, point_tag, nsphere_tag>
+{
+ template <typename Strategy>
+ static inline bool apply(Point const& point, NSphere const& nsphere, Strategy const& strategy)
+ {
+ assert_dimension_equal<Point, NSphere>();
+ boost::ignore_unused_variable_warning(strategy);
+ return strategy.apply(point, nsphere);
+ }
+};
} // namespace dispatch
#endif // DOXYGEN_NO_DISPATCH
Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk