public static IEnumerable <(int x, int y)> GetVoxelsInBounds(this IVoxelBounds2 bounds, IVoxelOrientation orientation) { var(min, max) = bounds.GetMinAndMax(orientation); for (int x = min.x; x <= max.x; x++) { for (int y = min.y; y <= max.y; y++) { yield return(x, y); } } }
public IntersectionVoxelBounds2(IVoxelBounds2 a, IVoxelBounds2 b) { this.a = a; this.b = b; }
public UnionVoxelBounds2(IVoxelBounds2 a, IVoxelBounds2 b) { this.a = a; this.b = b; }