# Method Intersections

#### Intersections(Geometry, Geometry)

Calculates the intersection of two geometries.

##### Declaration

`public static IReadOnlyList<Geometry> Intersections(this Geometry geometry1, Geometry geometry2)`

##### Parameters

Type | Name | Description |
---|---|---|

Geometry | geometry1 | A geometry object. |

Geometry | geometry2 | Another geometry object. |

##### Returns

Type | Description |
---|---|

IReadOnlyList<Geometry> | A collection of geometry objects that represent the intersection of the given geometries. |

##### Remarks

The returned collection contains one geometry of each dimension for which there are intersections. For example, if both inputs are polylines, the collection contains at most two geometries: the first a multipoint containing the points at which the lines cross, and the second a polyline containing the lines of overlap. If a crossing point lies within a line of overlap, only the line of overlap is present the result set is not self-intersecting. If there are no crossing points or there are no lines of overlap, the respective geometry is not present in the returned collection. If the input geometries do not intersect, the resulting collection is empty. The table below shows, for each combination of pairs of input geometry types, the types of geometry that are contained within the returned collection if there are intersections of that type.

The geometries in the returned collection are sorted by ascending dimensionality, e.g. multipoint (dimension 0) then polyline (dimension 1) then polygon (dimension 2) for the intersection of two geometries with area that have intersections of those types.

Supports true curves.

### Applies to

## Platforms and versions

Target | Versions |
---|---|

.NET Standard 2.0 | 100.3 - 200.2 |

.NET 6.0 | 100.13 - 200.2 |

.NET 6.0 Windows | 100.13 - 200.2 |

.NET 6.0 Android | 200.0 - 200.2 |

.NET 6.0 iOS | 200.0 - 200.2 |

.NET Framework | 100.1 - 200.2 |

.NET 5 | 100.10 - 100.12 |

.NET Core 3.1 | 100.7 - 100.12 |

Android | 100.1 - 100.15 |

iOS | 100.1 - 100.15 |

UWP | 100.1 - 200.2 |