# cnoise

> Classic Perlin noise

## Definition

* **Type:** Method
* **Namespace:** [Unity.Mathematics](/engine/6000.7/script-reference/unity/mathematics.md)
* **Assembly:** UnityEngine.MathematicsModule

## cnoise(float2)

Classic Perlin noise

```csharp
public static float cnoise(float2 P)
```

### Parameters

**** (\[float2]\(/engine/6000.7/script-reference/unity/mathematics/float2)): Point on a 2D grid of gradient vectors.

### Returns

| Type                                                          | Description  |
| ------------------------------------------------------------- | ------------ |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | Noise value. |

## cnoise(float3)

Classic Perlin noise

```csharp
public static float cnoise(float3 P)
```

### Parameters

**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): Point on a 3D grid of gradient vectors.

### Returns

| Type                                                          | Description  |
| ------------------------------------------------------------- | ------------ |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | Noise value. |

## cnoise(float4)

Classic Perlin noise

```csharp
public static float cnoise(float4 P)
```

### Parameters

**** (\[float4]\(/engine/6000.7/script-reference/unity/mathematics/float4)): Point on a 4D grid of gradient vectors.

### Returns

| Type                                                          | Description  |
| ------------------------------------------------------------- | ------------ |
| [float](https://learn.microsoft.com/dotnet/api/system.single) | Noise value. |
