예제 #1
0
 /// <summary>
 /// Checks the current set of shells (with their associated holes) to
 /// see if any of them contain the point.
 /// </summary>
 /// <param name="p"></param>
 /// <returns></returns>
 public bool ContainsPoint(ICoordinate p)
 {
     for (IEnumerator it = shellList.GetEnumerator(); it.MoveNext();)
     {
         EdgeRing er = (EdgeRing)it.Current;
         if (er.ContainsPoint(p))
         {
             return(true);
         }
     }
     return(false);
 }
예제 #2
0
        }         // private ArrayList ComputePolygons()

        /// <summary>
        /// Checks the current set of shells (with their associated holes) to
        /// see if any of them contain the point.
        /// </summary>
        /// <param name="p"></param>
        /// <returns></returns>
        public bool ContainsPoint(Coordinate p)
        {
            foreach (object obj in _shellList)
            {
                EdgeRing er = (EdgeRing)obj;
                if (er.ContainsPoint(p))
                {
                    return(true);
                }
            }
            return(false);
        }         // public bool ContainsPoint( Coordinate p )