# cellular2x2(float2)

> 2D Cellular noise ("Worley noise") with a 2x2 search window.

## Definition

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

```csharp
public static float2 cellular2x2(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. |

### Remarks

Faster than using 3x3, at the expense of some strong pattern artifacts. F2 is often wrong and has sharp discontinuities. If you need a smooth F2, use the slower 3x3 version. F1 is sometimes wrong, too, but OK for most purposes.
