mirror of
https://github.com/boostorg/geometry.git
synced 2026-02-21 15:12:17 +00:00
66 lines
1.5 KiB
Plaintext
66 lines
1.5 KiB
Plaintext
[/ Generated by doxygen_xml2qbk, don't change, it will be overwritten automatically]
|
|
[/ Generated from ../doxygen_output/xml/group__intersects.xml]
|
|
[section:intersects_2 intersects]
|
|
|
|
Checks if two geometries have at least one intersection.
|
|
|
|
[heading Synopsis]
|
|
``template<typename Geometry1, typename Geometry2>
|
|
bool intersects (Geometry1 const &geometry1, Geometry2 const &geometry2)``
|
|
|
|
[heading Parameters]
|
|
|
|
[table
|
|
[[Type] [Concept] [Name] [Description] ]
|
|
[[Geometry1 const &] [Any type fulfilling a Geometry Concept ] [geometry1] [A model of the specified concept ]]
|
|
[[Geometry2 const &] [Any type fulfilling a Geometry Concept ] [geometry2] [A model of the specified concept ]]
|
|
]
|
|
|
|
|
|
[heading Returns]
|
|
Returns true if two geometries intersect each other
|
|
|
|
[heading Header]
|
|
Either
|
|
|
|
`#include <boost/geometry/geometry.hpp>`
|
|
|
|
Or
|
|
|
|
`#include <boost/geometry/algorithms/intersects.hpp>`
|
|
|
|
|
|
[endsect]
|
|
|
|
[section:intersects_1 intersects]
|
|
|
|
Checks if a geometry has at least one intersection (crossing or self-tangency).
|
|
|
|
[heading Synopsis]
|
|
``template<typename Geometry>
|
|
bool intersects (Geometry const &geometry)``
|
|
|
|
[heading Parameters]
|
|
|
|
[table
|
|
[[Type] [Concept] [Name] [Description] ]
|
|
[[Geometry const &] [Any type fulfilling a Geometry Concept ] [geometry] [A model of the specified concept ]]
|
|
]
|
|
|
|
|
|
[heading Returns]
|
|
Returns true if the geometry is self-intersecting
|
|
|
|
[heading Header]
|
|
Either
|
|
|
|
`#include <boost/geometry/geometry.hpp>`
|
|
|
|
Or
|
|
|
|
`#include <boost/geometry/algorithms/intersects.hpp>`
|
|
|
|
|
|
[endsect]
|
|
|