IntersectsWith() public méthode

public IntersectsWith ( Server.Rectangle2D area ) : bool
area Server.Rectangle2D
Résultat bool
Exemple #1
0
        public static bool CheckWeatherConflict(Map facet, Weather exclude, Rectangle2D area)
        {
            List <Weather> list = GetWeatherList(facet);

            if (list == null)
            {
                return(false);
            }

            for (int i = 0; i < list.Count; ++i)
            {
                Weather w = list[i];

                if (w != exclude && w.IntersectsWith(area))
                {
                    return(true);
                }
            }

            return(false);
        }