• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1[/============================================================================
2  Boost.Geometry (aka GGL, Generic Geometry Library)
3
4  Copyright (c) 2014, Oracle and/or its affiliates.
5
6  Contributed and/or modified by Menelaos Karavelas, on behalf of Oracle
7
8  Licensed under the Boost Software License version 1.0.
9  http://www.boost.org/users/license.html
10=============================================================================/]
11
12[def __this_function__ num_segments]
13
14[heading_conformance_no_ogc __this_function__]
15
16[heading Behavior]
17[table
18[[Case] [Behavior] ]
19[[__0dim__][[qbk_ret 0]]]
20[[__segment__][[qbk_ret 1]]]
21[[__box__][[qbk_ret d * 2^(d-1), where d is the dimension of the box]]]
22[[__range__][[qbk_ret boost::size(geometry) - 1]]]
23[[__other__][[qbk_ret the sum of the number of segments of its elements]]]
24]
25
26
27[heading Complexity]
28Constant or Linear
29
30[heading Examples]
31[num_segments]
32[num_segments_output]
33