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::projected_point< CalculationType, Strategy > Class Template Reference

Strategy for distance point to segment. More...

#include <distance_projected_point.hpp>

Classes

struct  calculation_type
 

Public Member Functions

template<typename Point , typename PointOfSegment >
calculation_type< Point,
PointOfSegment >::type 
apply (Point const &p, PointOfSegment const &p1, PointOfSegment const &p2) const
 

Detailed Description

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

Strategy for distance point to segment.

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

Author
Adapted from: http://geometryalgorithms.com/Archive/algorithm_0102/algorithm_0102.htm
Template Parameters
CalculationType
Strategyunderlying point-point distance strategy
Concepts for Strategy:
  • cartesian_distance operator(Point,Point)
Note
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)] }

Member Function Documentation

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

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