• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[/============================================================================
2  Boost.Geometry (aka GGL, Generic Geometry Library)
3
4  Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands.
5  Copyright (c) 2008-2013 Bruno Lalande, Paris, France.
6  Copyright (c) 2009-2013 Mateusz Loskot, London, UK.
7
8  Use, modification and distribution is subject to the Boost Software License,
9  Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
10  http://www.boost.org/LICENSE_1_0.txt)
11=============================================================================/]
12
13
14[/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically]
15[/ Generated from doxy/doxygen_output/xml/classboost_1_1geometry_1_1strategy_1_1area_1_1cartesian.xml]
16[section:strategy_area_cartesian strategy::area::cartesian]
17
18'''<indexterm><primary>strategy</primary></indexterm><indexterm><primary>area</primary></indexterm><indexterm><primary>cartesian</primary></indexterm>'''
19Cartesian area calculation.
20
21[heading Description]
22Calculates cartesian area using the trapezoidal rule
23
24[heading Synopsis]
25``template<typename CalculationType>
26class strategy::area::cartesian
27{
28  // ...
29};
30``
31
32[heading Template parameter(s)]
33[table
34[[Parameter] [Default] [Description]]
35[[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]]
36]
37
38[heading Member Function(s)]
39[table
40[[Function] [Description] [Parameters]  [Returns]]
41[[``template<typename PointOfSegment, typename Geometry>
42void apply(PointOfSegment const & p1, PointOfSegment const & p2, state< Geometry > & st)``
43
44] [] [[* PointOfSegment const &]: ['p1]:
45
46[* PointOfSegment const &]: ['p2]:
47
48[* state< Geometry > &]: ['st]:
49
50
51
52][
53
54]
55]
56[[``template<typename Geometry>
57result_type< Geometry >::type result(state< Geometry > & st)``
58
59] [] [[* state< Geometry > &]: ['st]:
60
61
62
63][
64
65]
66]
67]
68
69[heading Header]
70`#include <boost/geometry/strategies/cartesian/area.hpp>`
71
72[heading See also]
73[link geometry.reference.algorithms.area.area_2_with_strategy area (with strategy)]
74
75[endsect]
76
77