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< CalculationType > Class Template Reference

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

#include <distance_pythagoras.hpp>

Classes

struct  calculation_type
 

Static Public Member Functions

template<typename P1 , typename P2 >
static calculation_type< P1,
P2 >::type 
apply (P1 const &p1, P2 const &p2)
 applies the distance calculation using pythagoras More...
 

Detailed Description

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

Strategy to calculate the distance between two points.

Template Parameters
CalculationType

{ [heading Notes] [note Can be used for points 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 P1 , typename P2 >
static calculation_type<P1, P2>::type boost::geometry::strategy::distance::pythagoras< CalculationType >::apply ( P1 const &  p1,
P2 const &  p2 
)
inlinestatic

applies the distance calculation using pythagoras

Returns
the calculated distance (including taking the square root)
Parameters
p1first point
p2second point

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


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