# Scale

> Returns a float4x4 scale matrix given 3 axis scales.

## Definition

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

## Scale(float)

Returns a float4x4 scale matrix given 3 axis scales.

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

### Parameters

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

### Returns

| Type                                                                      | Description                                          |
| ------------------------------------------------------------------------- | ---------------------------------------------------- |
| [float4x4](/engine/6000.7/script-reference/unity/mathematics/float4x4.md) | The float4x4 matrix that represents a uniform scale. |

## Scale(float, float, float)

Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales.

```csharp
public static float4x4 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                                              |
| ------------------------------------------------------------------------- | -------------------------------------------------------- |
| [float4x4](/engine/6000.7/script-reference/unity/mathematics/float4x4.md) | The float4x4 matrix that represents a non-uniform scale. |

## Scale(float3)

Returns a float4x4 scale matrix given a float3 vector containing the 3 axis scales.

```csharp
public static float4x4 Scale(float3 scales)
```

### Parameters

**** (\[float3]\(/engine/6000.7/script-reference/unity/mathematics/float3)): The vector containing scale factors for each axis.

### Returns

| Type                                                                      | Description                                              |
| ------------------------------------------------------------------------- | -------------------------------------------------------- |
| [float4x4](/engine/6000.7/script-reference/unity/mathematics/float4x4.md) | The float4x4 matrix that represents a non-uniform scale. |
