Пример #1
0
 public static IExplicitShape <GridPoint3> Select(this IExplicitShape <GridPoint3> shape, Func <GridPoint3, bool> predicate)
 {
     return(ImplicitShape
            .Func <GridPoint3>(x => shape.Contains(x) && predicate(x))
            .ToExplicit(shape.Bounds));
 }
Пример #2
0
 public static IExplicitShape <int> Where(this IExplicitShape <int> shape, Func <int, bool> predicate)
 {
     return(ImplicitShape
            .Func <int>(x => shape.Contains(x) && predicate(x))
            .ToExplicit(shape.Bounds));
 }