| Home | Libraries | People | FAQ | More

#### 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)