Ejemplo n.º 1
0
        public static void ForEach(this Rectangle2D r, Action <Point2D> action)
        {
            if (action == null)
            {
                return;
            }

            foreach (var p in r.EnumeratePoints())
            {
                action(p);
            }
        }
Ejemplo n.º 2
0
 public static int GetAverageZ(this Map map, Rectangle2D b)
 {
     return(GetAverageZ(map, b.EnumeratePoints()));
 }
Ejemplo n.º 3
0
 public static int GetTopZ(this Rectangle2D b, Map map)
 {
     return(GetTopZ(map, b.EnumeratePoints()));
 }