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

Strategy functor for distance point to segment calculation. More...

#include <distance_cross_track.hpp>

Classes

struct  return_type
 

Public Member Functions

 cross_track ()
 
 cross_track (typename Strategy::radius_type const &r)
 
 cross_track (Strategy const &s)
 
template<typename Point , typename PointOfSegment >
return_type< Point,
PointOfSegment >::type 
apply (Point const &p, PointOfSegment const &sp1, PointOfSegment const &sp2) const
 
Strategy::radius_type radius () const
 

Detailed Description

template<typename CalculationType = void, typename Strategy = haversine<double, CalculationType>>
class boost::geometry::strategy::distance::cross_track< CalculationType, Strategy >

Strategy functor for distance point to segment calculation.

Class which calculates the distance of a point to a segment, for points on a sphere or globe

See also
http://williams.best.vwh.net/avform.htm
Template Parameters
CalculationType
Strategyunderlying point-point distance strategy, defaults to haversine

{ [heading See also] [link geometry.reference.algorithms.distance.distance_3_with_strategy distance (with strategy)] }

Constructor & Destructor Documentation

template<typename CalculationType = void, typename Strategy = haversine<double, CalculationType>>
boost::geometry::strategy::distance::cross_track< CalculationType, Strategy >::cross_track ( )
inline
template<typename CalculationType = void, typename Strategy = haversine<double, CalculationType>>
boost::geometry::strategy::distance::cross_track< CalculationType, Strategy >::cross_track ( typename Strategy::radius_type const &  r)
inlineexplicit
template<typename CalculationType = void, typename Strategy = haversine<double, CalculationType>>
boost::geometry::strategy::distance::cross_track< CalculationType, Strategy >::cross_track ( Strategy const &  s)
inline

Member Function Documentation

template<typename CalculationType = void, typename Strategy = haversine<double, CalculationType>>
template<typename Point , typename PointOfSegment >
return_type<Point, PointOfSegment>::type boost::geometry::strategy::distance::cross_track< CalculationType, Strategy >::apply ( Point const &  p,
PointOfSegment const &  sp1,
PointOfSegment const &  sp2 
) const
inline
template<typename CalculationType = void, typename Strategy = haversine<double, CalculationType>>
Strategy::radius_type boost::geometry::strategy::distance::cross_track< CalculationType, Strategy >::radius ( ) const
inline

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