Ejemplo n.º 1
0
        /// <summary>
        /// Determines if two _polygonsDict are intersecting
        /// </summary>
        /// <param name="polygon"></param>
        /// <returns></returns>
        public bool Intersects(Polygon polygon)
        {
            if (!this.BoundingBox.Intersects(polygon.BoundingBox))
            {
                return(false);
            }
            var sw = new SweepLine(this, polygon, SweepLineType.Intersects);

            return(sw.HasIntersection());
        }