Example #1
0
 static public IGrid <T> BoundSub <T>(this IGrid <T> item, VectorI2 index, VectorI2 size)
 {
     return(item.BoundSubSection <T>(index, index + size));
 }
Example #2
0
 static public IGrid <T> BoundSubArea <T>(this IGrid <T> item, int x, int y, int width_radius, int height_radius)
 {
     return(item.BoundSubSection <T>(x - width_radius, y - height_radius, x + width_radius, y + height_radius));
 }
Example #3
0
 static public IGrid <T> BoundSub <T>(this IGrid <T> item, int x, int y, int width, int height)
 {
     return(item.BoundSubSection <T>(x, y, x + width, y + height));
 }
Example #4
0
 static public IGrid <T> BoundSubSection <T>(this IGrid <T> item, VectorI2 lower, VectorI2 upper)
 {
     return(item.BoundSubSection(lower.x, lower.y, upper.x, upper.y));
 }