boost::geometry::strategy::distance::pythagoras
distance_pythagoras.hpp
boost::geometry::strategy::distance::pythagoras::calculation_type
typename CalculationType void
typename P1
typename P2
calculation_type< P1, P2 >::type static calculation_type<P1, P2>::type boost::geometry::strategy::distance::pythagoras< CalculationType >::apply (P1 const &p1, P2 const &p2) apply P1 const & p1 P2 const & p2

applies the distance calculation using pythagoras

the calculated distance (including taking the square root)

p1

first point

p2

second point

Strategy to calculate the distance between two points.

CalculationType

numeric type for calculation (e.g. high precision); if [*void] then it is extracted automatically from the coordinate type and (if necessary) promoted to floating point

[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)]
- boost::geometry::strategy::distance::pythagoras
  apply