| Home | Libraries | People | FAQ | More

#### strategy::line_interpolate::spherical

Interpolate point on a spherical segment.

###### Synopsis

    template<typename CalculationType, typename DistanceStrategy>
    class strategy::line_interpolate::spherical
    {
      // ...
    };

###### 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 DistanceStrategy | distance::haversine<double, CalculationType> | The underlying point-point distance strategy

###### Constructor(s)

Function | Description | Parameters
--- | --- | ---
    spherical()
    spherical(typename DistanceStrategy::radius_type const & r)
|  | typename DistanceStrategy::radius_type const &: r:
    spherical(DistanceStrategy const & s)
|  | DistanceStrategy const &: s:

###### Member Function(s)

Function | Description | Parameters | Returns
--- | --- | --- | ---
    template<typename Point, typename Fraction, typename Distance>
    void apply(Point const & p0, Point const & p1, Fraction const & fraction,
               Point & p, Distance const & )
|  | Point const &: p0: Point const &: p1: Fraction const &: fraction: Point &: p: Distance const &: : |
    radius_type radius()

###### Header

`#include <boost/geometry/strategies/spherical/line_interpolate.hpp>`

###### See also

- line_interpolate (with strategy)