intersects

# intersects: detect if a geometry self-intersects or if two geometries intersect

typename Geometry
bool bool boost::geometry::intersects (Geometry const &geometry) intersects Geometry const & geometry

Checks if a geometry \1.

This function can be called for one geometry (self-intersection) and also for two geometries (intersection)

Geometry

Any type fulfilling a Geometry Concept

geometry

A model of the specified concept

Returns true if the geometry \1

one geometry [def __one_parameter__] [include reference/algorithms/intersects.qbk]
typename Geometry1
typename Geometry2
bool bool boost::geometry::intersects (Geometry1 const &geometry1, Geometry2 const &geometry2) intersects Geometry1 const & geometry1 Geometry2 const & geometry2

Checks if two geometries \1.

Geometry1

Any type fulfilling a Geometry Concept

Geometry2

Any type fulfilling a Geometry Concept

geometry1

A model of the specified concept

geometry2

A model of the specified concept

Returns true if two geometries \1

two geometries [include reference/algorithms/intersects.qbk]