|  | Home | Libraries | People | FAQ | More | 
Checks if two geometries crosses.
template<typename Geometry1, typename Geometry2> bool crosses(Geometry1 const & geometry1, Geometry2 const & geometry2)
| 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 | 
Returns true if two geometries crosses
Either
          #include <boost/geometry.hpp>
        
Or
          #include <boost/geometry/algorithms/crosses.hpp>
        
The function crosses implements function Crosses from the OGC Simple Feature Specification.
| Point | Segment | Box | Linestring | Ring | Polygon | MultiPoint | MultiLinestring | MultiPolygon | Variant | |
|---|---|---|---|---|---|---|---|---|---|---|
| Point | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
| Segment | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
| Box | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
| Linestring | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
| Ring | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
| Polygon | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
| MultiPoint | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
| MultiLinestring | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
| MultiPolygon | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
| Variant | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     | 
                     |