# SamplingPattern 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 static class SamplingPattern
```

Static sampling pattern database.

## Properties

- [SampleCount](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.samplingpattern/samplecount.md): (static) Gets the total number of samples in the grid.

## Methods

- [GetSampleOffset](https://developer.rhino3d.com/api/gh2/type/grasshopper2.imaging.raycasting.samplingpattern/getsampleoffset.md): (static) Gets the sampling ray offset for the given index.
