# Sandbox.Utility.INoiseField.Sample

## Overload 1

```csharp
float Sample(float x)
```

Sample at a 1D position.

### Parameters

- `x` (`float`)

### Returns

`float`: A noise value between `0` and `1`.

## Overload 2

```csharp
float Sample(float x, float y)
```

Sample at a 2D position.

### Parameters

- `x` (`float`)
- `y` (`float`)

### Returns

`float`: A noise value between `0` and `1`.

## Overload 3

```csharp
float Sample(float x, float y, float z)
```

Sample at a 3D position.

### Parameters

- `x` (`float`)
- `y` (`float`)
- `z` (`float`)

### Returns

`float`: A noise value between `0` and `1`.

## Overload 4

```csharp
float Sample(Vector2 vec)
```

Sample at a 2D position.

### Parameters

- `vec` (`Vector2`)

### Returns

`float`: A noise value between `0` and `1`.

## Overload 5

```csharp
float Sample(Vector3 vec)
```

Sample at a 3D position.

### Parameters

- `vec` (`Vector3`)

### Returns

`float`: A noise value between `0` and `1`.

Declared in [Sandbox.Utility.INoiseField](/api/Sandbox.Utility.INoiseField).
Assembly: `Sandbox.System`.
