sym_difference

# sym_difference: sym_difference of two geometries

typename Geometry1
typename Geometry2
typename Collection
void void boost::geometry::sym_difference (Geometry1 const &geometry1, Geometry2 const &geometry2, Collection &output_collection) sym_difference Geometry1 const & geometry1 Geometry2 const & geometry2 Collection & output_collection

Calculate the symmetric difference of two geometries.

The free function symmetric difference calculates the spatial set theoretic symmetric difference (XOR) of two geometries. Geometry1

Any type fulfilling a Geometry Concept

Geometry2

Any type fulfilling a Geometry Concept

Collection

output collection, either a multi-geometry, or a std::vector<Geometry> / std::deque<Geometry> etc

geometry1

A model of the specified concept

geometry2

A model of the specified concept

output_collection

the output collection

[include reference/algorithms/sym_difference.qbk]