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::area::spherical

Spherical area calculation.

Description

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

Synopsis

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

Template parameter(s)

Parameter

Default

Description

typename PointOfSegment

segment point type

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 T>
spherical(geometry::srs::sphere< T > const & sphere)

geometry::srs::sphere< T > const &: sphere:

spherical(CT const & radius)

CT const &: radius:

Member Function(s)

Function

Description

Parameters

Returns

void apply(PointOfSegment const & p1, PointOfSegment const & p2, excess_sum & state)

PointOfSegment const &: p1:

PointOfSegment const &: p2:

excess_sum &: state:

return_type result(excess_sum const & state)

excess_sum const &: state:

Header

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

See also

area (with strategy)


PrevUpHomeNext