Strategy to calculate the distance between a point and a box. More...
#include <distance_pythagoras_point_box.hpp>
Classes | |
struct | calculation_type |
Static Public Member Functions | |
template<typename Point , typename Box > | |
static calculation_type< Point, Box >::type | apply (Point const &point, Box const &box) |
applies the distance calculation using pythagoras More... | |
Strategy to calculate the distance between a point and a box.
CalculationType |
{ [heading Notes] [note Can be used for points and boxes with two\, three or more dimensions] [heading See also] [link geometry.reference.algorithms.distance.distance_3_with_strategy distance (with strategy)] }
|
inlinestatic |
applies the distance calculation using pythagoras
point | point |
box | box |
References boost::numeric_cast(), and boost::geometry::math::sqrt().