/// <summary>
 /// Tests whether a rectangle intersects a given geometry.
 /// </summary>
 /// <param name="rectangle">A rectangular polygon</param>
 /// <param name="b">A geometry of any kind</param>
 /// <returns><c>true</c> if the geometries intersect.</returns>
 public static bool Intersects(IPolygon rectangle, IGeometry b)
 {
     var rp = new RectangleIntersects(rectangle);
     return rp.Intersects(b);
 }
Esempio n. 2
0
        /// <summary>
        /// Tests whether a rectangle intersects a given geometry.
        /// </summary>
        /// <param name="rectangle">A rectangular polygon</param>
        /// <param name="b">A geometry of any kind</param>
        /// <returns><c>true</c> if the geometries intersect.</returns>
        public static bool Intersects(IPolygon rectangle, IGeometry b)
        {
            var rp = new RectangleIntersects(rectangle);

            return(rp.Intersects(b));
        }