/// <summary> /// Does this geometry intersect with the given one? /// </summary> /// <param name="otherGeometry">The other geometry.</param> public bool Intersects(PolygonGeometryResource otherGeometry) { this.EnsureNotNullOrDisposed("this"); otherGeometry.EnsureNotNullOrDisposed(nameof(otherGeometry)); D2D.GeometryRelation relation = m_d2dGeometry.Compare(otherGeometry.m_d2dGeometry); return ((relation != D2D.GeometryRelation.Unknown) && (relation != D2D.GeometryRelation.Disjoint)); }