# TransformBezierPath

> Transforms a path by a transformation matrix.

## Definition

* **Type:** Method
* **Namespace:** [Unity.VectorGraphics](/engine/6000.6/script-reference/unity/vectorgraphics.md)
* **Assembly:** UnityEngine.VectorGraphicsModule

## TransformBezierPath(BezierPathSegment\[], Vector2, float, Vector2)

Transforms a path by a transformation matrix.

```csharp
public static BezierPathSegment[] TransformBezierPath(BezierPathSegment[] path, Vector2 translation, float rotation, Vector2 scaling)
```

### Parameters

**** (\[BezierPathSegment\[]]\(/engine/6000.6/script-reference/unity/vectorgraphics/bezierpathsegment)): The path to transform**** (\[Vector2]\(/engine/6000.6/script-reference/unityengine/vector2)): The translation to apply**** (\[float]\(https\://learn.microsoft.com/dotnet/api/system.single)): The rotation to apply, in radians**** (\[Vector2]\(/engine/6000.6/script-reference/unityengine/vector2)): The scaling to apply

### Returns

| Type                                                                                               | Description          |
| -------------------------------------------------------------------------------------------------- | -------------------- |
| [BezierPathSegment\[\]](/engine/6000.6/script-reference/unity/vectorgraphics/bezierpathsegment.md) | The transformed path |

## TransformBezierPath(BezierPathSegment\[], Matrix2D)

Transforms a path by a transformation matrix.

```csharp
public static BezierPathSegment[] TransformBezierPath(BezierPathSegment[] path, Matrix2D matrix)
```

### Parameters

**** (\[BezierPathSegment\[]]\(/engine/6000.6/script-reference/unity/vectorgraphics/bezierpathsegment)): The path to transform**** (\[Matrix2D]\(/engine/6000.6/script-reference/unity/vectorgraphics/matrix2d)): The transformation matrix to apply on the curve segment

### Returns

| Type                                                                                               | Description          |
| -------------------------------------------------------------------------------------------------- | -------------------- |
| [BezierPathSegment\[\]](/engine/6000.6/script-reference/unity/vectorgraphics/bezierpathsegment.md) | The transformed path |
