# RaycasterBuckets class

Namespace: [Grasshopper2.Imaging.Raycasting](https://developer.rhino3d.com/api/gh2/namespace/grasshopper2.imaging.raycasting.md) · Assembly: [Grasshopper2](https://developer.rhino3d.com/api/gh2/assembly/grasshopper2.md)

```cs
public sealed class RaycasterBuckets
```

Raycasting speed-up for quickly rejecting the bulk of objects.

## Constructors

- [RaycasterBuckets](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.raycasterbuckets/ctor.md): Create a new blank bucket grid.

## Properties

- [Buckets](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.raycasterbuckets/buckets.md): Enumerate over all buckets.
- [Size](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.raycasterbuckets/size.md): Gets the size of each bucket.
- [X0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.raycasterbuckets/x0.md): Gets the minimum x coordinate still covered by the grid.
- [X1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.raycasterbuckets/x1.md): Gets the maximum x coordinate still covered by the grid.
- [XCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.raycasterbuckets/xcount.md): Gets the number of buckets along the X direction.
- [Y0](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.raycasterbuckets/y0.md): Gets the minimum y coordinate still covered by the grid.
- [Y1](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.raycasterbuckets/y1.md): Gets the maximum y coordinate still covered by the grid.
- [YCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.raycasterbuckets/ycount.md): Gets the number of buckets along the Y direction.

## Methods

- [BucketAt](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.raycasterbuckets/bucketat.md): Gets the bucket, if any, at the given location.
