# cellular

> 2D Cellular noise ("Worley noise") with standard 3x3 search window for good feature point values.

## Definition

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

## cellular(float2)

2D Cellular noise ("Worley noise") with standard 3x3 search window for good feature point values.

```csharp
public static float2 cellular(float2 P)
```

### Parameters

**** (\[float2]\(/engine/6000.6/script-reference/unity/mathematics/float2)): A point in 2D space.

### Returns

| Type                                                                  | Description                                                      |
| --------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [float2](/engine/6000.6/script-reference/unity/mathematics/float2.md) | Feature points. F1 is in the x component, F2 in the y component. |

## cellular(float3)

3D Cellular noise ("Worley noise") with 3x3x3 search region for good F2 everywhere, but a lot slower than the 2x2x2 version.

```csharp
public static float2 cellular(float3 P)
```

### Parameters

**** (\[float3]\(/engine/6000.6/script-reference/unity/mathematics/float3)): A point in 2D space.

### Returns

| Type                                                                  | Description                                                      |
| --------------------------------------------------------------------- | ---------------------------------------------------------------- |
| [float2](/engine/6000.6/script-reference/unity/mathematics/float2.md) | Feature points. F1 is in the x component, F2 in the y component. |
