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::cartesian

Cartesian area calculation.

Description

Calculates cartesian area using the trapezoidal rule

Synopsis

template<typename CalculationType>
class strategy::area::cartesian
{
  // ...
};

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

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 > & st)

state< Geometry > &: st:

Header

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

See also

area (with strategy)


PrevUpHomeNext