num_points.qbk 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. [/============================================================================
  2. Boost.Geometry (aka GGL, Generic Geometry Library)
  3. Copyright (c) 2009-2012 Barend Gehrels, Amsterdam, the Netherlands.
  4. Copyright (c) 2009-2012 Mateusz Loskot, London, UK.
  5. Copyright (c) 2009-2012 Bruno Lalande, Paris, France.
  6. Use, modification and distribution is subject to the Boost Software License,
  7. Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  8. http://www.boost.org/LICENSE_1_0.txt)
  9. =============================================================================/]
  10. [def __this_function__ num_points]
  11. [heading_conformance_ogc __this_function__..NumPoints]
  12. [note __this_function__ can be called for any geometry and not just linestrings
  13. (as the standard describes)]
  14. [heading Behavior]
  15. [table
  16. [[Case] [Behavior] ]
  17. [[__point__][[qbk_ret 1]]]
  18. [[__segment__][[qbk_ret 2]]]
  19. [[__box__][[qbk_ret 2^d, where d is the dimension of the box]]]
  20. [[__range__][[qbk_ret boost::size(geometry)]]]
  21. [[__other__][[qbk_ret the sum of the number of points of its elements]]]
  22. [[Open geometries][[qbk_ret the sum of the number of points of its elements, it adds one for open (per ring) if specified]]]
  23. [[Closed geometries][[qbk_ret the sum of the number of points of its elements]]]
  24. ]
  25. [heading Complexity]
  26. Constant or Linear
  27. [heading Examples]
  28. [num_points]
  29. [num_points_output]