Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::strategy::area::surveyor< PointOfSegment, CalculationType > Class Template Reference

Area calculation for cartesian points. More...

#include <area_surveyor.hpp>

Public Types

typedef boost::mpl::if_c
< boost::is_void
< CalculationType >
::type::value, typename
select_most_precise< typename
coordinate_type
< PointOfSegment >::type,
double >::type,
CalculationType >::type 
return_type
 
typedef summation state_type
 
typedef PointOfSegment segment_point_type
 

Static Public Member Functions

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

Detailed Description

template<typename PointOfSegment, typename CalculationType = void>
class boost::geometry::strategy::area::surveyor< PointOfSegment, CalculationType >

Area calculation for cartesian points.

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

Template Parameters
PointOfSegment
CalculationType

{ [heading See also] [link geometry.reference.algorithms.area.area_2_with_strategy area (with strategy)] }

Member Typedef Documentation

template<typename PointOfSegment , typename CalculationType = void>
typedef boost::mpl::if_c< boost::is_void<CalculationType>::type::value, typename select_most_precise < typename coordinate_type<PointOfSegment>::type, double >::type, CalculationType >::type boost::geometry::strategy::area::surveyor< PointOfSegment, CalculationType >::return_type
template<typename PointOfSegment , typename CalculationType = void>
typedef PointOfSegment boost::geometry::strategy::area::surveyor< PointOfSegment, CalculationType >::segment_point_type
template<typename PointOfSegment , typename CalculationType = void>
typedef summation boost::geometry::strategy::area::surveyor< PointOfSegment, CalculationType >::state_type

Member Function Documentation

template<typename PointOfSegment , typename CalculationType = void>
static void boost::geometry::strategy::area::surveyor< PointOfSegment, CalculationType >::apply ( PointOfSegment const &  p1,
PointOfSegment const &  p2,
summation &  state 
)
inlinestatic
template<typename PointOfSegment , typename CalculationType = void>
static return_type boost::geometry::strategy::area::surveyor< PointOfSegment, CalculationType >::result ( summation const &  state)
inlinestatic

The documentation for this class was generated from the following file: