# Scale

> Returns a float2x2 matrix representing a uniform scaling of both axes by s.

## Definition

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

## Scale(float)

Returns a float2x2 matrix representing a uniform scaling of both axes by s.

```csharp
public static float2x2 Scale(float s)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The scaling factor.

### Returns

| Type                                                                      | Description                                          |
| ------------------------------------------------------------------------- | ---------------------------------------------------- |
| [float2x2](/engine/6000.6/script-reference/unity/mathematics/float2x2.md) | The float2x2 matrix representing uniform scale by s. |

## Scale(float, float)

Returns a float2x2 matrix representing a non-uniform axis scaling by x and y.

```csharp
public static float2x2 Scale(float x, float y)
```

### Parameters

**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The x-axis scaling factor.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The y-axis scaling factor.

### Returns

| Type                                                                      | Description                                           |
| ------------------------------------------------------------------------- | ----------------------------------------------------- |
| [float2x2](/engine/6000.6/script-reference/unity/mathematics/float2x2.md) | The float2x2 matrix representing a non-uniform scale. |

## Scale(float2)

Returns a float2x2 matrix representing a non-uniform axis scaling by the components of the float2 vector v.

```csharp
public static float2x2 Scale(float2 v)
```

### Parameters

**** (\[float2]\(/engine/6000.6/script-reference/unity/mathematics/float2)): The float2 containing the x and y axis scaling factors.

### Returns

| Type                                                                      | Description                                           |
| ------------------------------------------------------------------------- | ----------------------------------------------------- |
| [float2x2](/engine/6000.6/script-reference/unity/mathematics/float2x2.md) | The float2x2 matrix representing a non-uniform scale. |
