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::centroid::bashein_detmer

Centroid calculation using algorith Bashein / Detmer.

Description

Calculates centroid using triangulation method published by Bashein / Detmer

Statements:

With holes:

Statements:

Synopsis

template<typename Point, typename PointOfSegment, typename CalculationType>
class strategy::centroid::bashein_detmer
{
  // ...
};

Template parameter(s)

Parameter

Default

Description

typename Point

point type of centroid to calculate

typename PointOfSegment

Point

point type of segments, defaults to Point

typename CalculationType

void

Member Function(s)

Function

Description

Parameters

Returns

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

PointOfSegment const &: p1:

PointOfSegment const &: p2:

sums &: state:

bool result(sums const & state, Point & centroid)

sums const &: state:

Point &: centroid:

Header

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

See also

centroid (with strategy)


PrevUpHomeNext