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 for the latest Boost documentation.
PrevUpHomeNext

strategy::area::surveyor

Area calculation for cartesian points.

Description

Calculates area using the Surveyor's formula, a well-known triangulation algorithm

Synopsis

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

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

Member Function(s)

Function

Description

Parameters

Returns

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

PointOfSegment const &: p1:

PointOfSegment const &: p2:

summation &: state:

return_type result(summation const & state)

summation const &: state:

Header

#include <boost/geometry/strategies/cartesian/area_surveyor.hpp>

See also

area (with strategy)


PrevUpHomeNext