]>
Commit | Line | Data |
---|---|---|
7c673cae FG |
1 | [/============================================================================ |
2 | Boost.Geometry (aka GGL, Generic Geometry Library) | |
3 | ||
4 | Copyright (c) 2009-2012 Barend Gehrels, Amsterdam, the Netherlands. | |
5 | Copyright (c) 2009-2012 Mateusz Loskot, London, UK. | |
6 | Copyright (c) 2009-2012 Bruno Lalande, Paris, France. | |
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 | [def __this_function__ num_points] | |
14 | ||
15 | [heading_conformance_ogc __this_function__..NumPoints] | |
16 | [note __this_function__ can be called for any geometry and not just linestrings | |
17 | (as the standard describes)] | |
18 | ||
19 | [heading Behavior] | |
20 | [table | |
21 | [[Case] [Behavior] ] | |
22 | [[__point__][[qbk_ret 1]]] | |
23 | [[__segment__][[qbk_ret 2]]] | |
24 | [[__box__][[qbk_ret 2^d, where d is the dimension of the box]]] | |
25 | [[__range__][[qbk_ret boost::size(geometry)]]] | |
26 | [[__other__][[qbk_ret the sum of the number of points of its elements]]] | |
27 | [[Open geometries][[qbk_ret the sum of the number of points of its elements, it adds one for open (per ring) if specified]]] | |
28 | [[Closed geometries][[qbk_ret the sum of the number of points of its elements]]] | |
29 | ] | |
30 | ||
31 | ||
32 | [heading Complexity] | |
33 | Constant or Linear | |
34 | ||
35 | [heading Examples] | |
36 | [num_points] | |
37 | [num_points_output] | |
38 |