Boost C++ Libraries

...one of the most highly regarded and expertly designed C++ library projects in the world. Herb Sutter and Andrei Alexandrescu, C++ Coding Standards

This is the documentation for an old version of Boost. Click here to view this page for the latest version.
PrevUpHomeNext

strategy::distance::cross_track_point_box

Strategy functor for distance point to box calculation.

Description

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

Synopsis

template<typename CalculationType, typename Strategy>
class strategy::distance::cross_track_point_box
{
  // ...
};

Template parameter(s)

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

Constructor(s)

Function

Description

Parameters

cross_track_point_box()

cross_track_point_box(typename Strategy::radius_type const & r)

typename Strategy::radius_type const &: r:

cross_track_point_box(Strategy const & s)

Strategy const &: s:

Member Function(s)

Function

Description

Parameters

Returns

template<typename Point, typename Box>
return_type< Point, Box >::type apply(Point const & point, Box const & box)

Point const &: point:

Box const &: box:

Strategy::radius_type radius()

Header

#include <boost/geometry/strategies/spherical/distance_cross_track_point_box.hpp>


PrevUpHomeNext