within.qbk 1.6 KB

1234567891011121314151617181920212223242526272829303132333435
  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__ within]
  11. [heading_conformance_ogc __this_function__..Within]
  12. [note OGC defines within as completely within and not on the border. See the notes for within / on the border]
  13. [include reference/status/within_status.qbk]
  14. [note In this status matrix above: columns are types of first parameter
  15. and rows are types of second parameter. So a point can be checked to be
  16. within a polygon, but not vice versa.]
  17. [heading Notes]
  18. If a point is located exactly on the border of a geometry, the result depends on the strategy.
  19. The default strategy ([link geometry.reference.strategies.strategy_within_winding Winding (coordinate system agnostic)])
  20. returns false in that case.
  21. If a polygon has a reverse oriented (e.g. counterclockwise for a clockwise typed polygon), the result also depends on the strategy.
  22. The default strategy returns still true if a point is completely within the reversed polygon. There is a specific strategy which returns false in this case.
  23. [heading Complexity]
  24. Linear
  25. [heading See also]
  26. * [link geometry.reference.algorithms.covered_by covered_by]