centroid_exception.qbk 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  1. [/============================================================================
  2. Boost.Geometry (aka GGL, Generic Geometry Library)
  3. Copyright (c) 2007-2013 Barend Gehrels, Amsterdam, the Netherlands.
  4. Copyright (c) 2008-2013 Bruno Lalande, Paris, France.
  5. Copyright (c) 2009-2013 Mateusz Loskot, London, UK.
  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. [/ Generated by doxygen_xml2qbk 1.1.1, don't change, will be overwritten automatically]
  11. [/ Generated from doxy/doxygen_output/xml/classboost_1_1geometry_1_1centroid__exception.xml]
  12. [section:centroid_exception centroid_exception]
  13. '''<indexterm><primary>centroid_exception</primary></indexterm>'''
  14. Centroid Exception.
  15. [heading Description]
  16. The centroid\u005fexception is thrown if the free centroid function is called with geometries for which the centroid cannot be calculated. For example: a linestring without points, a polygon without points, an empty multi-geometry.
  17. [heading Synopsis]
  18. ``class centroid_exception
  19. : public exception
  20. {
  21. // ...
  22. };
  23. ``
  24. [heading Constructor(s)]
  25. [table
  26. [[Function] [Description] [Parameters] ]
  27. [[``centroid_exception()``
  28. ] [The default constructor. ] [
  29. ]]
  30. ]
  31. [heading Member Function(s)]
  32. [table
  33. [[Function] [Description] [Parameters] [Returns]]
  34. [[``char const * what()``
  35. ] [Returns the explanatory string. ] [
  36. ][
  37. Pointer to a null-terminated string with explanatory information.
  38. ]
  39. ]
  40. ]
  41. [heading Header]
  42. Either
  43. `#include <boost/geometry.hpp>`
  44. Or
  45. `#include <boost/geometry/algorithms/centroid.hpp>`
  46. [heading See also]
  47. * [link geometry.reference.algorithms.centroid the centroid function]
  48. [endsect]