public static void ForEach(this Rectangle2D r, Action <Point2D> action) { if (action == null) { return; } foreach (var p in r.EnumeratePoints()) { action(p); } }
public static int GetAverageZ(this Map map, Rectangle2D b) { return(GetAverageZ(map, b.EnumeratePoints())); }
public static int GetTopZ(this Rectangle2D b, Map map) { return(GetTopZ(map, b.EnumeratePoints())); }