![]() |
Home | Libraries | People | FAQ | More |
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
template<typename CalculationType, typename Strategy> class strategy::distance::cross_track { // ... };
|
Parameter |
Default |
Description |
|---|---|---|
|
typename CalculationType |
void |
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 |
|
typename Strategy |
haversine<double, CalculationType> |
underlying point-point distance strategy, defaults to haversine |
|
Function |
Description |
Parameters |
|---|---|---|
|
cross_track()
|
||
|
cross_track(typename Strategy::radius_type const & r)
|
typename Strategy::radius_type const &: r: |
|
|
cross_track(Strategy const & s)
|
Strategy const &: s: |
|
Function |
Description |
Parameters |
Returns |
|---|---|---|---|
|
relate_segment_segment_strategy_type get_relate_segment_segment_strategy()
|
|||
|
point_in_geometry_strategy_type get_point_in_geometry_strategy()
|
|||
|
template<typename Point, typename PointOfSegment> return_type< Point, PointOfSegment >::type apply(Point const & p, PointOfSegment const & sp1, PointOfSegment const & sp2)
|
Point const &: p: PointOfSegment const &: sp1: PointOfSegment const &: sp2: |
||
|
template<typename T1, typename T2> radius_type vertical_or_meridian(T1 lat1, T2 lat2)
|
T1: lat1: T2: lat2: |
||
|
Strategy::radius_type radius()
|
#include <boost/geometry/strategies/spherical/distance_cross_track.hpp>