c_array.qbk 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. [/============================================================================
  2. Boost.Geometry (aka GGL, Generic Geometry Library)
  3. Copyright (c) 2007-2012 Barend Gehrels, Amsterdam, the Netherlands.
  4. Copyright (c) 2008-2012 Bruno Lalande, Paris, France.
  5. Copyright (c) 2009-2012 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. [section:c_array C array]
  11. C arrays are adapted to the Boost.Geometry point concept
  12. [heading Description]
  13. C arrays, such as double[2] or int[3], are (optionally) adapted to the Boost.Geometry
  14. point concept. They can therefore be used in many Boost.Geometry algorithms.
  15. Note that a C array cannot be the point type of a linestring or a polygon. The reason
  16. for that is that a std::vector does not allow containing C arrays
  17. (this is not related to Boost.Geometry). The C array is therefore limited to
  18. the point type.
  19. [heading Model of]
  20. [link geometry.reference.concepts.concept_point Point Concept]
  21. [heading Header]
  22. `#include <boost/geometry/geometries/adapted/c_array.hpp>`
  23. __not_in_boost_geometry_hpp__
  24. [heading Example]
  25. [c_array]
  26. [c_array_output]
  27. [endsect]