# Scale

> Returns a float3x3 matrix representing a uniform scaling of all axes by s.

## Definition

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

## Scale(float)

Returns a float3x3 matrix representing a uniform scaling of all axes by s.

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

### Parameters

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

### Returns

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

## Scale(float, float, float)

Returns a float3x3 matrix representing a non-uniform axis scaling by x, y and z.

```csharp
public static float3x3 Scale(float x, float y, float z)
```

### 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.**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The z-axis scaling factor.

### Returns

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

## Scale(float3)

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

```csharp
public static float3x3 Scale(float3 v)
```

### Parameters

**** (\[float3]\(/engine/6000.6/script-reference/unity/mathematics/float3)): The vector containing non-uniform scaling factors.

### Returns

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