Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::strategy::distance::pythagoras_box_box< CalculationType > Class Template Reference

Strategy to calculate the distance between two boxes. More...

#include <distance_pythagoras_box_box.hpp>

Classes

struct  calculation_type
 

Static Public Member Functions

template<typename Box1 , typename Box2 >
static calculation_type< Box1,
Box2 >::type 
apply (Box1 const &box1, Box2 const &box2)
 applies the distance calculation using pythagoras_box_box More...
 

Detailed Description

template<typename CalculationType = void>
class boost::geometry::strategy::distance::pythagoras_box_box< CalculationType >

Strategy to calculate the distance between two boxes.

Template Parameters
CalculationType

{ [heading Notes] [note Can be used for boxes with two\, three or more dimensions] [heading See also] [link geometry.reference.algorithms.distance.distance_3_with_strategy distance (with strategy)] }

Member Function Documentation

template<typename CalculationType = void>
template<typename Box1 , typename Box2 >
static calculation_type<Box1, Box2>::type boost::geometry::strategy::distance::pythagoras_box_box< CalculationType >::apply ( Box1 const &  box1,
Box2 const &  box2 
)
inlinestatic

applies the distance calculation using pythagoras_box_box

Returns
the calculated distance (including taking the square root)
Parameters
box1first box
box2second box

References boost::numeric_cast(), and boost::geometry::math::sqrt().


The documentation for this class was generated from the following file: