Boost.Geometry    Boost C++ Libraries
Functions
intersects: detect if a geometry self-intersects or if two geometries intersect

Functions

template<typename Geometry >
bool boost::geometry::intersects (Geometry const &geometry)
 Checks if a geometry has at least one intersection (crossing or self-tangency) More...
 
template<typename Geometry1 , typename Geometry2 >
bool boost::geometry::intersects (Geometry1 const &geometry1, Geometry2 const &geometry2)
 Checks if two geometries have at least one intersection. More...
 

Detailed Description

Function Documentation

template<typename Geometry >
bool boost::geometry::intersects ( Geometry const &  geometry)

Checks if a geometry has at least one intersection (crossing or self-tangency)

Note
This function can be called for one geometry (self-intersection) and also for two geometries (intersection)
Template Parameters
GeometryAny type fulfilling a Geometry Concept
Parameters
geometryA model of the specified concept
Returns
Returns true if the geometry is self-intersecting
template<typename Geometry1 , typename Geometry2 >
bool boost::geometry::intersects ( Geometry1 const &  geometry1,
Geometry2 const &  geometry2 
)

Checks if two geometries have at least one intersection.

Template Parameters
Geometry1Any type fulfilling a Geometry Concept
Geometry2Any type fulfilling a Geometry Concept
Parameters
geometry1A model of the specified concept
geometry2A model of the specified concept
Returns
Returns true if two geometries intersect each other

April 2, 2011

Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands
Copyright © 2008-2011 Bruno Lalande, Paris, France
Copyright © 2009-2010 Mateusz Loskot, London, UK
Documentation is generated by Doxygen