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

PrevUpHomeNext

strategy::area::spherical

Spherical area calculation.

Description

Calculates area on the surface of a sphere using the trapezoidal rule

Synopsis

template<typename RadiusTypeOrSphere, typename CalculationType>
class strategy::area::spherical
{
  // ...
};

Template parameter(s)

Parameter

Default

Description

typename RadiusTypeOrSphere

double

numeric type for radius (of sphere, earth) or sphere model

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

Constructor(s)

Function

Description

Parameters

spherical()

template<typename RadiusOrSphere>
spherical(RadiusOrSphere const & radius_or_sphere)

RadiusOrSphere const &: radius_or_sphere:

Member Function(s)

Function

Description

Parameters

Returns

template<typename PointOfSegment, typename Geometry>
void apply(PointOfSegment const & p1, PointOfSegment const & p2, state< Geometry > & st)

PointOfSegment const &: p1:

PointOfSegment const &: p2:

state< Geometry > &: st:

template<typename Geometry>
result_type< Geometry >::type result(state< Geometry > const & st)

state< Geometry > const &: st:

srs::sphere< radius_type > model()

Header

#include <boost/geometry/strategy/spherical/area.hpp>

See also

area (with strategy)


PrevUpHomeNext