|
template<typename Geometry1 , typename Geometry2 , typename GeometryOut , typename Strategy > |
bool | boost::geometry::intersection (Geometry1 const &geometry1, Geometry2 const &geometry2, GeometryOut &geometry_out, Strategy const &strategy) |
| Calculate the intersection of two geometries. More...
|
|
template<typename Geometry1 , typename Geometry2 , typename GeometryOut > |
bool | boost::geometry::intersection (Geometry1 const &geometry1, Geometry2 const &geometry2, GeometryOut &geometry_out) |
| Calculate the intersection of two geometries. More...
|
|
template<typename Geometry1 , typename Geometry2 , typename GeometryOut , typename Strategy >
bool boost::geometry::intersection |
( |
Geometry1 const & |
geometry1, |
|
|
Geometry2 const & |
geometry2, |
|
|
GeometryOut & |
geometry_out, |
|
|
Strategy const & |
strategy |
|
) |
| |
Calculate the intersection of two geometries.
The free function intersection calculates the spatial set theoretic intersection of two geometries.
- Template Parameters
-
Geometry1 | Any type fulfilling a Geometry Concept |
Geometry2 | Any type fulfilling a Geometry Concept |
GeometryOut | Collection of geometries (e.g. std::vector, std::deque, boost::geometry::multi*) of which the value_type fulfills a Point, LineString or Polygon concept, or it is the output geometry (e.g. for a box) |
Strategy | Any type fulfilling a Intersection Strategy Concept |
- Parameters
-
geometry1 | A model of the specified concept |
geometry2 | A model of the specified concept |
geometry_out | The output geometry, either a multi_point, multi_polygon, multi_linestring, or a box (for intersection of two boxes) |
strategy | The strategy which will be used for intersection calculations |
- Examples:
- 02_linestring_example.cpp, and 03_polygon_example.cpp.
template<typename Geometry1 , typename Geometry2 , typename GeometryOut >
bool boost::geometry::intersection |
( |
Geometry1 const & |
geometry1, |
|
|
Geometry2 const & |
geometry2, |
|
|
GeometryOut & |
geometry_out |
|
) |
| |
Calculate the intersection of two geometries.
The free function intersection calculates the spatial set theoretic intersection of two geometries.
- Template Parameters
-
Geometry1 | Any type fulfilling a Geometry Concept |
Geometry2 | Any type fulfilling a Geometry Concept |
GeometryOut | Collection of geometries (e.g. std::vector, std::deque, boost::geometry::multi*) of which the value_type fulfills a Point, LineString or Polygon concept, or it is the output geometry (e.g. for a box) |
- Parameters
-
geometry1 | A model of the specified concept |
geometry2 | A model of the specified concept |
geometry_out | The output geometry, either a multi_point, multi_polygon, multi_linestring, or a box (for intersection of two boxes) |