boost::geometry::strategy::distance::projected_point
distance_projected_point.hpp
boost::geometry::strategy::distance::projected_point::calculation_type
typename CalculationType void
typename Strategy pythagoras<CalculationType>
typename Point
typename PointOfSegment
calculation_type< Point, PointOfSegment >::type calculation_type<Point, PointOfSegment>::type boost::geometry::strategy::distance::projected_point< CalculationType, Strategy >::apply (Point const &p, PointOfSegment const &p1, PointOfSegment const &p2) const apply Point const & p PointOfSegment const & p1 PointOfSegment const & p2

Strategy for distance point to segment.

Calculates distance using projected-point method, and (optionally) Pythagoras

Adapted from: http://geometryalgorithms.com/Archive/algorithm_0102/algorithm_0102.htm

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

Strategy

underlying point-point distance strategy

# Concepts for Strategy:

- cartesian_distance operator(Point,Point)

If the Strategy is a "comparable::pythagoras", this strategy automatically is a comparable projected_point strategy (so without sqrt)

[heading See also] [link geometry.reference.algorithms.distance.distance_3_with_strategy distance (with strategy)]
- boost::geometry::strategy::distance::projected_point
  apply